mirror of
https://github.com/discourse/discourse.git
synced 2024-11-21 16:38:15 -06:00
Oops we should register a service worker as long as it is supported.
This commit is contained in:
parent
9c7d609575
commit
7902296c11
@ -44,9 +44,7 @@
|
||||
Discourse.SiteSettings = ps.get('siteSettings');
|
||||
Discourse.LetterAvatarVersion = '<%= LetterAvatar.version %>';
|
||||
Discourse.MarkdownItURL = '<%= asset_url('markdown-it-bundle.js') %>';
|
||||
<%- if DiscoursePluginRegistry.service_workers.present? %>
|
||||
Discourse.ServiceWorkerURL = '<%= Rails.application.assets_manifest.assets['service-worker.js'] %>'
|
||||
<%- end %>
|
||||
I18n.defaultLocale = '<%= SiteSetting.default_locale %>';
|
||||
Discourse.start();
|
||||
Discourse.set('assetVersion','<%= Discourse.assets_digest %>');
|
||||
|
Loading…
Reference in New Issue
Block a user