mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-17 12:01:13 +02:00
utils: typo
This commit is contained in:
@@ -465,7 +465,7 @@ export function prettify(content, type = 'js') {
|
|||||||
const worker = new Worker(
|
const worker = new Worker(
|
||||||
chrome.extension
|
chrome.extension
|
||||||
? chrome.extension.getURL('lib/prettier-worker.js')
|
? chrome.extension.getURL('lib/prettier-worker.js')
|
||||||
: `${BASE_PATH === '/' ? '' : BASEPATH}/lib/prettier-worker.js`
|
: `${BASE_PATH === '/' ? '' : BASE_PATH}/lib/prettier-worker.js`
|
||||||
);
|
);
|
||||||
worker.postMessage({ content, type });
|
worker.postMessage({ content, type });
|
||||||
worker.addEventListener('message', e => {
|
worker.addEventListener('message', e => {
|
||||||
|
Reference in New Issue
Block a user