@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 savedLayout = JSON.parse(localStorage.getItem('Layout') || 'null');
1993
- if (savedLayout?.aiNativeLayout !== true) return;
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');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.82.3",
3
+ "version": "30.82.4",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"