diff --git a/src/js/tabs/cli.js b/src/js/tabs/cli.js index dae3ff1f..000771d4 100644 --- a/src/js/tabs/cli.js +++ b/src/js/tabs/cli.js @@ -50,7 +50,7 @@ function copyToClipboard(text) { function onCopySuccessful() { analytics.sendEvent(analytics.EVENT_CATEGORIES.FLIGHT_CONTROLLER, 'CliCopyToClipboard', text.length); - const button = self.GUI.copyButton; + const button = TABS.cli.GUI.copyButton; const origText = button.text(); const origWidth = button.css("width"); button.text(i18n.getMessage("cliCopySuccessful"));