move messages to content
This commit is contained in:
parent
1145eb3478
commit
6551420e1a
15 changed files with 12 additions and 12 deletions
18
src/content/console-frames.js
Normal file
18
src/content/console-frames.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
import './console-frame.scss';
|
||||
|
||||
const initialize = (doc) => {
|
||||
let iframe = doc.createElement('iframe');
|
||||
iframe.src = browser.runtime.getURL('build/console.html');
|
||||
iframe.id = 'vimvixen-console-frame';
|
||||
iframe.className = 'vimvixen-console-frame';
|
||||
doc.body.append(iframe);
|
||||
|
||||
return iframe;
|
||||
};
|
||||
|
||||
const blur = (doc) => {
|
||||
let iframe = doc.getElementById('vimvixen-console-frame');
|
||||
iframe.blur();
|
||||
};
|
||||
|
||||
export { initialize, blur };
|
Reference in a new issue