Skip to content

Commit 0698ff9

Browse files
Update style.js
1 parent b307050 commit 0698ff9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/style.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { IS_PUTER } from "./puter.js";
66
const style = {
77
apply(name) {
88
configuration.set("style", name);
9-
10-
Object.keys(configuration.getConfig().styleOptions).forEach(styleOption => {
11-
const showOption = configuration.getConfig().styleOptions[styleOption];
9+
const config = configuration.getConfig();
10+
Object.keys(config.styleOptions).forEach(styleOption => {
11+
const showOption = config.styleOptions[styleOption];
1212
if (showOption) {
1313
document.querySelectorAll(`.judge0-${styleOption}`).forEach(e => {
1414
e.classList.remove("judge0-style-hidden");

0 commit comments

Comments
 (0)