Skip to content

Commit

Permalink
Merge pull request #71 in EXTENSIONS/browser-extension from feature/i…
Browse files Browse the repository at this point in the history
…ssues/929 to master

* commit 'c2480a7fb272a959053a0a6b18ece289b3842b70':
  Fix #929 FF legacy preload
  Fix #929 FF legacy preload
  Fix #929 FF legacy preload
  • Loading branch information
Aleksandr Tropnikov committed Jan 10, 2018
2 parents 524966c + c2480a7 commit 71149a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Extension/lib/content-script/preload.js
Expand Up @@ -65,14 +65,14 @@
* https://github.com/AdguardTeam/AdguardBrowserExtension/issues/880
*/
var getContentPage = function () {
if (!window.contentPage) {
window.contentPage = {
if (typeof contentPage === 'undefined') {
contentPage = {
sendMessage: adguardContent.runtimeImpl.sendMessage,
onMessage: adguardContent.runtimeImpl.onMessage
};
}

return window.contentPage;
return contentPage;
};

/**
Expand Down

0 comments on commit 71149a0

Please sign in to comment.