mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +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:
+9
-8
@@ -261,18 +261,19 @@ class Tab:
|
||||
|
||||
wrappedjs = (
|
||||
"""
|
||||
function scriptFunc() {
|
||||
function scriptFunc() {{
|
||||
{js}
|
||||
}
|
||||
if (document.readyState === 'loading') {
|
||||
addEventListener('DOMContentLoaded', () => {
|
||||
}}
|
||||
if (document.readyState === 'loading') {{
|
||||
addEventListener('DOMContentLoaded', () => {{
|
||||
scriptFunc();
|
||||
});
|
||||
} else {
|
||||
}});
|
||||
}} else {{
|
||||
scriptFunc();
|
||||
}
|
||||
}}
|
||||
""".format(
|
||||
)
|
||||
js=js
|
||||
)
|
||||
if add_dom_wrapper
|
||||
else js
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user