@kmlckj/licos-ai-cli 1.1.38 → 1.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
const previewBase =
|
|
2
|
-
typeof window !== 'undefined' ? window.__LICOS_PREVIEW_BASE_PATH__ : undefined;
|
|
3
|
-
|
|
4
|
-
let originalUrl;
|
|
5
|
-
const rawReplaceState =
|
|
6
|
-
typeof
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
: undefined;
|
|
1
|
+
const previewBase =
|
|
2
|
+
typeof window !== 'undefined' ? window.__LICOS_PREVIEW_BASE_PATH__ : undefined;
|
|
3
|
+
|
|
4
|
+
let originalUrl;
|
|
5
|
+
const rawReplaceState =
|
|
6
|
+
typeof window !== 'undefined' &&
|
|
7
|
+
typeof window.history?.replaceState === 'function'
|
|
8
|
+
? window.history.replaceState
|
|
9
|
+
: undefined;
|
|
11
10
|
|
|
12
11
|
const replaceStateWithoutPreviewRewrite = (url) => {
|
|
13
12
|
if (!rawReplaceState || typeof window === 'undefined') return;
|