diff --git a/background/background-worker.js b/background/background-worker.js new file mode 100644 index 00000000..6403a7ac --- /dev/null +++ b/background/background-worker.js @@ -0,0 +1,12 @@ +importScripts('/js/worker-util.js'); + +const {loadScript, createAPI} = workerUtil; + +createAPI({ + parseMozFormat(code) { + + }, + compileUsercss(style, allowErrors = false) { + + } +}); diff --git a/background/background.js b/background/background.js index 80f3f13a..20033b52 100644 --- a/background/background.js +++ b/background/background.js @@ -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,