Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jgraph/drawio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/js/diagramly/EditorUi.js')
-rw-r--r--src/main/webapp/js/diagramly/EditorUi.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/webapp/js/diagramly/EditorUi.js b/src/main/webapp/js/diagramly/EditorUi.js
index ff07dc02..ce01dbe2 100644
--- a/src/main/webapp/js/diagramly/EditorUi.js
+++ b/src/main/webapp/js/diagramly/EditorUi.js
@@ -10283,9 +10283,9 @@
this.doSetCurrentTheme('simple', 0);
}
- if (!mxClient.IS_IE && !mxClient.IS_IE11 && urlParams['dark'] != '0' &&
- Editor.currentTheme != 'atlas' && (urlParams['embed'] != '1' ||
- urlParams['dark'] == '1'))
+ if (!mxClient.IS_IE && !mxClient.IS_IE11 && this.isSettingsEnabled() &&
+ urlParams['dark'] != '0' && Editor.currentTheme != 'atlas' &&
+ (urlParams['embed'] != '1' || urlParams['dark'] == '1'))
{
var darkMode = (mxSettings.settings.darkMode == 'auto' ||
urlParams['dark'] == 'auto') ? window.matchMedia &&