Add: background worker
This commit is contained in:
parent
b0e407e98f
commit
64aa9fcf53
12
background/background-worker.js
Normal file
12
background/background-worker.js
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
importScripts('/js/worker-util.js');
|
||||||
|
|
||||||
|
const {loadScript, createAPI} = workerUtil;
|
||||||
|
|
||||||
|
createAPI({
|
||||||
|
parseMozFormat(code) {
|
||||||
|
|
||||||
|
},
|
||||||
|
compileUsercss(style, allowErrors = false) {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
|
@ -8,6 +8,8 @@ global usercss
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
var backgroundWorker = workerUtil.createWorker('/background/background-worker.js');
|
||||||
|
|
||||||
window.API_METHODS = Object.assign(window.API_METHODS || {}, {
|
window.API_METHODS = Object.assign(window.API_METHODS || {}, {
|
||||||
|
|
||||||
getStyles,
|
getStyles,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user