mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Compile splash screen JS with ember-cli before inlining (#18150)
This lets us use all our normal JS tooling like prettier, esline and babel on the splash screen JS. At runtime the JS file is read and inlined into the HTML. This commit also switches us to use a CSP hash rather than a nonce for the splash screen.
This commit is contained in:
@@ -128,10 +128,6 @@ module ApplicationHelper
|
||||
path
|
||||
end
|
||||
|
||||
def self.splash_screen_nonce
|
||||
@splash_screen_nonce ||= SecureRandom.hex
|
||||
end
|
||||
|
||||
def preload_script(script)
|
||||
scripts = [script]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user