diff --git a/kumascript/macros/AvailableInWorkers.ejs b/kumascript/macros/AvailableInWorkers.ejs index c357401454c1..25696627929c 100644 --- a/kumascript/macros/AvailableInWorkers.ejs +++ b/kumascript/macros/AvailableInWorkers.ejs @@ -7,6 +7,7 @@ // 'window_and_dedicated': only in DedicatedWorker (and in Window) // 'dedicated': only in DedicatedWorker // 'window_and_worker_except_service': all workers but ServiceWorker (and in Window) +// 'window_and_worker_except_shared': all workers but shared workers (and in Window) // 'worker_except_service': all workers but ServiceWorker (and no window) // 'window_and_service': only in ServiceWorker (and in Window) // 'service': only in ServiceWorker @@ -54,6 +55,10 @@ const textNotService = mdn.localString({ "zh-TW": `此功能可在 Web Worker(不包括 Service Worker)中使用。`, }); +const textNotShared = mdn.localString({ + "en-US": `This feature is available in Web Workers, except for Shared Web Workers.`, +}); + const textNotServiceNotWindow = mdn.localString({ "en-US": `This feature is only available in Web Workers, except for Service Workers.`, "ja": `この機能はウェブワーカー内でのみ利用可能ですが、サービスワーカーでは使用できません。`, @@ -90,6 +95,7 @@ const associatedText = { default: () => textDefault, worker: () => textWorker, window_and_worker_except_service: () => textNotService, + window_and_worker_except_shared: () => textNotShared, worker_except_service: () => textNotServiceNotWindow, window_and_dedicated: () => textDedicated, dedicated: () => textDedicatedOnly,