Skip to content

Commit c20c4b5

Browse files
format
1 parent fba71dd commit c20c4b5

2 files changed

Lines changed: 19 additions & 28 deletions

File tree

package-lock.json

Lines changed: 5 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/run.js

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
import fsOperation from "fileSystem";
12
import tutorial from "components/tutorial";
23
import alert from "dialogs/alert";
34
import box from "dialogs/box";
4-
import fsOperation from "fileSystem";
55
import markdownIt from "markdown-it";
66
import anchor from "markdown-it-anchor";
77
import MarkdownItGitHubAlerts from "markdown-it-github-alerts";
88
import mimeType from "mime-types";
99
import mustache from "mustache";
1010
import browser from "plugins/browser";
11-
import Url from "utils/Url";
1211
import helpers from "utils/helpers";
12+
import Url from "utils/Url";
1313
import $_console from "views/console.hbs";
1414
import $_markdown from "views/markdown.hbs";
1515
import constants from "./constants";
@@ -343,20 +343,22 @@ async function run(
343343
theme: 'dark'
344344
});
345345
346-
${target === "inapp"
347-
? "eruda._shadowRoot.querySelector('.eruda-entry-btn').style.display = 'none';"
348-
: ""
349-
}
346+
${
347+
target === "inapp"
348+
? "eruda._shadowRoot.querySelector('.eruda-entry-btn').style.display = 'none';"
349+
: ""
350+
}
350351
351352
sessionStorage.setItem('__console_available', true);
352353
document.addEventListener('showconsole', function () {eruda.show()});
353354
document.addEventListener('hideconsole', function () {eruda.hide()});
354355
}else if(document.querySelector('c-toggler')){
355-
${target === "inapp" ||
356-
(target !== "inapp" && !appSettings.value.showConsoleToggler)
357-
? "document.querySelector('c-toggler').style.display = 'none';"
358-
: ""
359-
}
356+
${
357+
target === "inapp" ||
358+
(target !== "inapp" && !appSettings.value.showConsoleToggler)
359+
? "document.querySelector('c-toggler').style.display = 'none';"
360+
: ""
361+
}
360362
}
361363
setTimeout(function(){
362364
var scripts = document.querySelectorAll('.${uuid}');
@@ -493,4 +495,4 @@ async function run(
493495
}
494496
}
495497

496-
export default run;
498+
export default run;

0 commit comments

Comments
 (0)