@lvce-editor/renderer-process 30.82.3 → 30.82.4
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.
|
@@ -1989,8 +1989,14 @@ const dispose$p = async () => {
|
|
|
1989
1989
|
|
|
1990
1990
|
const initialize = () => {
|
|
1991
1991
|
try {
|
|
1992
|
-
const
|
|
1993
|
-
|
|
1992
|
+
const isChatRoute = /(?:^|\/)chat\/?$/.test(location.pathname);
|
|
1993
|
+
let savedLayout;
|
|
1994
|
+
try {
|
|
1995
|
+
savedLayout = JSON.parse(localStorage.getItem('Layout') || 'null');
|
|
1996
|
+
} catch {
|
|
1997
|
+
savedLayout = null;
|
|
1998
|
+
}
|
|
1999
|
+
if (savedLayout?.aiNativeLayout !== true && !isChatRoute) return;
|
|
1994
2000
|
let settings;
|
|
1995
2001
|
try {
|
|
1996
2002
|
settings = JSON.parse(localStorage.getItem('settings') || 'null');
|