A fork of https://github.com/ueokande/vim-vixen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
476 B
19 lines
476 B
import './command-line-frame.scss'; |
|
|
|
export default class CommandLineFrame { |
|
constructor(win, initial = '') { |
|
let url = browser.runtime.getURL('build/command-line.html') + |
|
'#' + encodeURIComponent(initial); |
|
|
|
let element = window.document.createElement('iframe'); |
|
element.src = url; |
|
element.className = 'vimvixen-command-line-frame'; |
|
win.document.body.append(element); |
|
|
|
this.element = element; |
|
} |
|
|
|
remove() { |
|
this.element.remove(); |
|
} |
|
}
|
|
|