mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-16 19:46:19 +02:00
utils: typo
This commit is contained in:
@@ -465,7 +465,7 @@ export function prettify(content, type = 'js') {
|
||||
const worker = new Worker(
|
||||
chrome.extension
|
||||
? 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.addEventListener('message', e => {
|
||||
|
Reference in New Issue
Block a user