fix: fixed RUM css worker path (#1849)

This commit is contained in:
Omkar Kesarkhane
2023-11-02 23:47:00 +05:30
committed by GitHub
parent 0bf3c8c648
commit 149e986856
+2 -2
View File
@@ -158,7 +158,7 @@ import {
onBeforeMount,
} from "vue";
import { useStore } from "vuex";
import { useLocalToken } from "@/utils/zincutils";
import { useLocalToken, getPath } from "@/utils/zincutils";
const props = defineProps({
events: {
@@ -486,7 +486,7 @@ const skipTo = (skipTo: string) => {
const initializeWorker = () => {
if (window.Worker) {
// Creating the Web Worker
worker.value = new Worker("/rumCssWorker.js");
worker.value = new Worker(`${getPath()}rumCssWorker.js`);
console.log("Worker created successfully.");
} else {
console.error("Web Workers are not supported in this browser.");