Fixed tests
This commit is contained in:
@@ -53,7 +53,7 @@ class CreateMetaTemplateTagTest(TestCase):
|
|||||||
'<script type="text/javascript">',
|
'<script type="text/javascript">',
|
||||||
"if ('serviceWorker' in navigator) {",
|
"if ('serviceWorker' in navigator) {",
|
||||||
"navigator.serviceWorker.register('/serviceworker.js', {",
|
"navigator.serviceWorker.register('/serviceworker.js', {",
|
||||||
"scope: '.'",
|
"scope: '/'",
|
||||||
"}).then(function (registration) {",
|
"}).then(function (registration) {",
|
||||||
"console.log('django-pwa: ServiceWorker registration successful with scope: ', registration.scope);",
|
"console.log('django-pwa: ServiceWorker registration successful with scope: ', registration.scope);",
|
||||||
"}, function (err) {",
|
"}, function (err) {",
|
||||||
|
|||||||
Reference in New Issue
Block a user