FIX: Only unregister service workers that belongs to Discourse.

This commit is contained in:
Guo Xiang Tan
2019-05-07 12:36:40 +08:00
parent 03169401ff
commit abbc639e0d
4 changed files with 16 additions and 10 deletions

View File

@@ -115,7 +115,7 @@ QUnit.testStart(function(ctx) {
// Allow our tests to change site settings and have them reset before the next test
Discourse.SiteSettings = dup(Discourse.SiteSettingsOriginal);
Discourse.BaseUri = "";
Discourse.BaseUrl = "localhost";
Discourse.BaseUrl = "http://localhost:3000";
Discourse.Session.resetCurrent();
Discourse.User.resetCurrent();
resetSite(Discourse.SiteSettings);