diff options
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/inpage.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/app/scripts/inpage.js b/app/scripts/inpage.js index f5e54cd7b..c2b445bd1 100644 --- a/app/scripts/inpage.js +++ b/app/scripts/inpage.js @@ -53,9 +53,17 @@ var __define function cleanContextForImports () { __define = global.define - delete global.define + try { + delete global.define + } catch (_) { + console.warn('MetaMask - global.define could not be deleted.') + } } function restoreContextAfterImports () { - global.define = __define + try { + global.define = __define + } catch { + console.warn('MetaMask - global.define could not be overwritten.') + } } |