Rename command-line to console

This commit is contained in:
Shin'ya Ueoka 2017-09-01 08:51:14 +09:00
parent f1b9c6ba9d
commit 6e5286ef10
9 changed files with 35 additions and 35 deletions

View 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();
}
}