mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix(epg): update worker URL handling for packaged apps
This commit is contained in:
1 parent
1b4954e20b
commit
682b040aec
1 file changed
+2
-2
@@ -113,8 +113,8 @@ export default class EpgEvents {
|
||||
|
||||
let worker: Worker;
|
||||
try {
|
||||
// Worker threads require file:// URLs in packaged apps
|
||||
const workerURL = pathToFileURL(workerPath).href;
|
||||
// Worker threads require file:// URLs wrapped in URL object for packaged apps
|
||||
const workerURL = pathToFileURL(workerPath);
|
||||
worker = new Worker(workerURL);
|
||||
console.log(this.loggerLabel, 'Worker created successfully');
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user