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.
20 lines
476 B
20 lines
476 B
7 years ago
|
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();
|
||
|
}
|
||
|
}
|