进度修复
This commit is contained in:
1 parent
63663f3bb7
commit
55dc52be37
7 files changed
+13
-6
No files matched your search
@@ -99,7 +99,7 @@
|
||||
// Windows 上 pathname 形如 /C:/...,要去掉盘符前那个多余的斜杠;
|
||||
// macOS/Linux 是 /Users/...,前导斜杠必须留着,否则会变成相对路径。
|
||||
const pathname = decodeURIComponent(new URL('.', location.href).pathname).replace(/\\/g, '/');
|
||||
window.SpinePluginRoot = pathname.replace(/^\/([A-Za-z]:)/, '$1');
|
||||
window.SpinePluginRoot = pathname.replace(/^\/+([A-Za-z]:)/, '$1');
|
||||
} catch (error) {
|
||||
window.SpinePluginRoot = '';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user