fix: script path issue.

This commit is contained in:
lchen committed 2026-11-24 21:52:53 +08:00
1 parent 29a327ff02
commit ec086e29aa
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ import { requestAnimationFrame } from '../../ui';
* @version 1.0.7
*/
const ScriptPath = (self.document == null ? self.location.href : self.document.currentScript?.src ?? '').replace(/ui\.min\.js\?.+$/, '');
const ScriptPath = import.meta.url.replace(/\/[^?/]+(\?[a-f0-9]+)?$/, '/');
const Encoder = new TextEncoder('utf-8');
const ColumnChangedType = {