FIX: extracted theme JavaScripts for multisite (#6502)

* FIX: extracted theme javascripts for multisite

* onceoff to rebake all theme fields
This commit is contained in:
Kyle Zhao
2018-10-18 02:05:34 -04:00
committed by Sam
parent 22408f93c9
commit 0f1afad6da
4 changed files with 34 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class JavascriptCache < ActiveRecord::Base
before_save :update_digest
def url
"#{GlobalSetting.cdn_url}#{GlobalSetting.relative_url_root}/theme-javascripts/#{digest}.js"
"#{GlobalSetting.cdn_url}#{GlobalSetting.relative_url_root}/theme-javascripts/#{digest}.js?__ws=#{Discourse.current_hostname}"
end
private