Created
August 8, 2016 21:01
-
-
Save nt1m/b517bd1eee085af636ab33a3fc9660d5 to your computer and use it in GitHub Desktop.
frame script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const tabs = require("sdk/tabs"); | |
const { viewFor } = require("sdk/view/core"); | |
let messageManager = viewFor(tabs.activeTab).linkedBrowser.messageManager; | |
messageManager.loadFrameScript(self.data.url("yourframescript.js"), false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment