elf" console command, even if the page implements a variable with the same name. preferConsoleCommandsOverLocalSymbols: true, }); if (res.helperResult.type === "copyValueToClipboard") { clipboardHelper.copyString(res.helperResult.value); } else if (res.helperResult.type === "error") { const nofificationName = "copy-value-to-clipboard-notification"; dispatch( actions.appendNotification( l10n.getFormatStr( res.helperResult.message, res.helperResult.messageArgs ), nofificationName, null, PriorityLevels.PRIORITY_CRITICAL_HIGH, null, () => dispatch(actions.removeNotification(nofificationName)) ) ); } } else { clipboardHelper.copyString(variableText); } }; } module.exports = { storeAsGlobal, copyMessageObject, }; PK