]> git.gir.st - VimFx.git/blob - extension/lib/status-panel.coffee
Export isXULDocument from utils and fix Ci.nsIDOMElement gone (#919)
[VimFx.git] / extension / lib / status-panel.coffee
1 # This file creates VimFx’s status panel, similar to the “URL popup” shown when
2 # hovering or focusing links.
3
4 utils = require('./utils')
5
6 injectStatusPanel = (browser) ->
7 window = browser.ownerGlobal
8
9 statusPanel = window.document.createElement('statuspanel')
10 utils.setAttributes(statusPanel, {
11 inactive: 'true'
12 layer: 'true'
13 mirror: 'true'
14 })
15
16 window.gBrowser.getBrowserContainer(browser).appendChild(statusPanel)
17 module.onShutdown(-> statusPanel.remove())
18
19 return statusPanel
20
21 module.exports = {
22 injectStatusPanel
23 }
Imprint / Impressum