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