Rename command-line to console
This commit is contained in:
parent
f1b9c6ba9d
commit
6e5286ef10
9 changed files with 35 additions and 35 deletions
19
src/console/console-frame.js
Normal file
19
src/console/console-frame.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
import './console-frame.scss';
|
||||
|
||||
export default class ConsoleFrame {
|
||||
constructor(win, initial = '') {
|
||||
let url = browser.runtime.getURL('build/console.html') +
|
||||
'#' + encodeURIComponent(initial);
|
||||
|
||||
let element = window.document.createElement('iframe');
|
||||
element.src = url;
|
||||
element.className = 'vimvixen-console-frame';
|
||||
win.document.body.append(element);
|
||||
|
||||
this.element = element;
|
||||
}
|
||||
|
||||
remove() {
|
||||
this.element.remove();
|
||||
}
|
||||
}
|
Reference in a new issue