Language: JavaScript
Label: safe
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("darkModeChanged"))}),mxUtils.bind(this,function(e){null!=window.console&&console.error(e);this.editor.setStatus(e.message)}))};EditorUi.prototype.createDarkStyle=function(){var c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("href",STYLE_PATH+"/dark.css");c.setAttribute("charset","UTF-8");c.setAttribute("type","text/css");return c};EditorUi.setGraphDarkMode=function(c,e,k){c.view.defaultGridColor=k?mxGraphView.prototype.defaultDarkGridColor:
mxGraphView.prototype.defaultGridColor;c.view.gridColor=c.view.defaultGridColor;c.defaultPageBackgroundColor="1"==urlParams.embedInline?"transparent":k?Editor.darkColor:"#ffffff";c.defaultPageBorderColor=k?"#000000":"#ffffff";c.shapeBackgroundColor=k?Editor.darkColor:"#ffffff";c.shapeForegroundColor=k?Editor.lightColor:"#000000";c.defaultThemeName=k?"darkTheme":"default-style2";c.graphHandler.previewColor=k?"#cccccc":"black";mxGraphHandler.prototype.previewColor=c.graphHandler.previewColor;null!=
e&&(e.style.backgroundColor="1"==urlParams.embedInline?"transparent":k?Editor.darkColor:"#ffffff");c.loadStylesheet();Graph.prototype.defaultPageBackgroundColor=c.defaultPageBackgroundColor;Graph.prototype.defaultPageBorderColor=c.defaultPageBorderColor;Graph.prototype.shapeBackgroundColor=c.shapeBackgroundColor;Graph.prototype.shapeForegroundColor=c.shapeForegroundColor;Graph.prototype.defaultThemeName=c.defaultThemeName};EditorUi.prototype.doSetDarkMode=function(c,e,k){var n=mxUtils.bind(this,function(){if(Editor.darkMode!=