Forráskód Böngészése

fix: leftover broken imports

Sv443 10 hónapja
szülő
commit
e3dadf55c4

+ 1 - 1
src/dialogs/exportCfg.ts

@@ -3,7 +3,7 @@ import { compressionSupported, copyToClipboard, onInteraction, t } from "../util
 import { BytmDialog } from "../components/index.js";
 import { compressionFormat, scriptInfo } from "../constants.js";
 import { formatVersion, getFeatures } from "../config.js";
-import { siteEvents } from "src/siteEvents";
+import { siteEvents } from "../siteEvents.js";
 
 let exportDialog: BytmDialog | null = null;
 let copiedTxtTimeout: ReturnType<typeof setTimeout> | undefined = undefined;

+ 1 - 1
src/dialogs/versionNotif.ts

@@ -3,7 +3,7 @@ import { getChangelogMd, getResourceUrl, onInteraction, parseMarkdown, t } from
 import { BytmDialog, createToggleInput } from "../components/index.js";
 import { getFeatures, setFeatures } from "../config.js";
 import pkg from "../../package.json" with { type: "json" };
-import { siteEvents } from "src/siteEvents";
+import { siteEvents } from "../siteEvents.js";
 
 let verNotifDialog: BytmDialog | null = null;
 

+ 1 - 1
src/features/lyrics.ts

@@ -6,7 +6,7 @@ import { mode, scriptInfo } from "../constants.js";
 import { getFeature } from "../config.js";
 import { addLyricsCacheEntryBest, addLyricsCacheEntryPenalized, getLyricsCacheEntry } from "./lyricsCache.js";
 import type { LyricsCacheEntry } from "../types.js";
-import { addSelectorListener } from "src/observers";
+import { addSelectorListener } from "../observers.js";
 
 /** Ratelimit budget timeframe in seconds - should reflect what's in geniURL's docs */
 const geniUrlRatelimitTimeframe = 30;

+ 1 - 1
src/features/volume.ts

@@ -4,7 +4,7 @@ import { addStyleFromResource, error, log, resourceToHTMLString, t, waitVideoEle
 import { siteEvents } from "../siteEvents.js";
 import { featInfo } from "./index.js";
 import "./volume.css";
-import { addSelectorListener } from "src/observers";
+import { addSelectorListener } from "../observers.js";
 
 //#region init vol features
 

+ 1 - 1
src/utils/dom.ts

@@ -2,7 +2,7 @@ import { addGlobalStyle, getUnsafeWindow, randomId, type Stringifiable } from "@
 import { error, fetchCss, getDomain, t } from "./index.js";
 import { addSelectorListener } from "../observers.js";
 import type { ResourceKey } from "../types.js";
-import { siteEvents } from "src/siteEvents";
+import { siteEvents } from "../siteEvents.js";
 
 /** Whether the DOM has finished loading and elements can be added or modified */
 export let domLoaded = false;

+ 1 - 1
src/utils/xhr.ts

@@ -1,5 +1,5 @@
 import { fetchAdvanced, type Stringifiable } from "@sv443-network/userutils";
-import type { ResourceKey } from "src/types";
+import type { ResourceKey } from "../types.js";
 import { getResourceUrl } from "./misc.js";
 import { error } from "./logging.js";