diff --git a/platform/firefox/vapi-client.js b/platform/firefox/vapi-client.js index ebff517..65fccb0 100644 --- a/platform/firefox/vapi-client.js +++ b/platform/firefox/vapi-client.js @@ -28,7 +28,7 @@ /******************************************************************************/ -(function() { +(function(self) { /******************************************************************************/ @@ -211,6 +211,6 @@ if ( window !== window.top ) { /******************************************************************************/ -})(); +})(this); /******************************************************************************/ diff --git a/platform/firefox/vapi-common.js b/platform/firefox/vapi-common.js index d100a28..994045b 100644 --- a/platform/firefox/vapi-common.js +++ b/platform/firefox/vapi-common.js @@ -27,7 +27,7 @@ /******************************************************************************/ -(function() { +(function(self) { /******************************************************************************/ @@ -186,6 +186,6 @@ vAPI.localStorage.init('extensions.' + location.host + '.'); /******************************************************************************/ -})(); +})(this); /******************************************************************************/