Add: background worker

This commit is contained in:
eight 2018-09-25 17:34:54 +08:00
parent b0e407e98f
commit 64aa9fcf53
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,12 @@
importScripts('/js/worker-util.js');
const {loadScript, createAPI} = workerUtil;
createAPI({
parseMozFormat(code) {
},
compileUsercss(style, allowErrors = false) {
}
});

View File

@ -8,6 +8,8 @@ global usercss
*/
'use strict';
var backgroundWorker = workerUtil.createWorker('/background/background-worker.js');
window.API_METHODS = Object.assign(window.API_METHODS || {}, {
getStyles,