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 bb2c58b commit 02d3fac
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 02d3fac

Please sign in to comment.