mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 12:31:59 +00:00
Fix unescaped curly braces in javascript formatting
This would previously throw an error due to `format` interpreting the curly braces as placeholders
This commit is contained in:
+8
-7
@@ -261,17 +261,18 @@ class Tab:
|
|||||||
|
|
||||||
wrappedjs = (
|
wrappedjs = (
|
||||||
"""
|
"""
|
||||||
function scriptFunc() {
|
function scriptFunc() {{
|
||||||
{js}
|
{js}
|
||||||
}
|
}}
|
||||||
if (document.readyState === 'loading') {
|
if (document.readyState === 'loading') {{
|
||||||
addEventListener('DOMContentLoaded', () => {
|
addEventListener('DOMContentLoaded', () => {{
|
||||||
scriptFunc();
|
scriptFunc();
|
||||||
});
|
}});
|
||||||
} else {
|
}} else {{
|
||||||
scriptFunc();
|
scriptFunc();
|
||||||
}
|
}}
|
||||||
""".format(
|
""".format(
|
||||||
|
js=js
|
||||||
)
|
)
|
||||||
if add_dom_wrapper
|
if add_dom_wrapper
|
||||||
else js
|
else js
|
||||||
|
|||||||
Reference in New Issue
Block a user