Skip to content

Commit 7f07111

Browse files
Oneliner to make RSC CDN work. (#29217)
* Oneline fix to make assets CDN work * Make this more bearable too why not
1 parent d5ec3cd commit 7f07111

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

code/controllers/subsystem/SStgui.dm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ SUBSYSTEM_DEF(tgui)
3030
polyfill = "<script>\n[polyfill]\n</script>"
3131
basehtml = replacetextEx(basehtml, "<!-- tgui:inline-polyfill -->", polyfill)
3232

33+
/datum/controller/subsystem/tgui/can_vv_get(var_name)
34+
if(var_name == "basehtml")
35+
return FALSE // No security implication here, it just spams the fuck out of the UI
36+
37+
return ..()
38+
39+
3340
/datum/controller/subsystem/tgui/Shutdown()
3441
close_all_uis()
3542

tgui/public/tgui.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@
340340
var node = document.createElement('link');
341341
node.type = 'text/css';
342342
node.rel = 'stylesheet';
343+
node.crossOrigin = 'anonymous';
343344
node.href = url;
344345
// Temporarily set media to something inapplicable
345346
// to ensure it'll fetch without blocking render

0 commit comments

Comments
 (0)