diff --git a/messaging.js b/messaging.js index d7bc98cb..590008be 100644 --- a/messaging.js +++ b/messaging.js @@ -193,18 +193,9 @@ function wildcardAsRegExp(s, flags) { } -// isolate deoptimization trigger: -// https://github.com/petkaantonov/bluebird/wiki/Optimization-killers -// * Functions that contain object literals that contain __proto__, or get or set declarations. -const configureCommands = (() => ({ - get url() { - return navigator.userAgent.includes('OPR') - ? 'opera://settings/configureCommands' - : 'chrome://extensions/configureCommands'; - }, - open: () => { - chrome.tabs.create({ - 'url': configureCommands.url - }); - } -}))(); +const configureCommands = { + url: navigator.userAgent.includes('OPR') + ? 'opera://settings/configureCommands' + : 'chrome://extensions/configureCommands', + open: () => openURL({url: configureCommands.url}), +};