Skip to content

Commit

Permalink
🔧 refactor(client/components/Theme.js): Change variable declaration t…
Browse files Browse the repository at this point in the history
…o use `var` for consistency

The variable `editorUiCreateWrapperForTheme` was previously declared as a direct assignment to a function property. This commit changes it to use `var` for better consistency and readability.
  • Loading branch information
周腾 committed Nov 26, 2024
1 parent 4148c9f commit edaa81a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/components/Theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function setup() {
document.getElementsByTagName("head")[0].appendChild(this.sketchStyleElt)) : A.apply(this, arguments)
}
;
editorUiCreateWrapperForTheme = EditorUi.prototype.createWrapperForTheme;
var editorUiCreateWrapperForTheme = EditorUi.prototype.createWrapperForTheme;
EditorUi.prototype.createWrapperForTheme = function(a) {
"simple" == a || "sketch" == a ? (null == this.sketchWrapperElt && (this.sketchWrapperElt = document.createElement("div"),
this.sketchWrapperElt.style.cssText = "position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;"),
Expand Down

0 comments on commit edaa81a

Please sign in to comment.