Skip to content

Commit

Permalink
fix: restrict window.ipfs to Secure Contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed May 23, 2018
1 parent cdfc775 commit 375f2c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion add-on/src/contentScripts/ipfs-proxy/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ function init () {
injectScript(code)
}

init()
// Restricting window.ipfs to Secure Context
// See: https://github.com/ipfs-shipyard/ipfs-companion/issues/476
if (window.isSecureContext) {
init()
}

0 comments on commit 375f2c2

Please sign in to comment.