Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastien Robin
erp5
Commits
1ed4cce0
Commit
1ed4cce0
authored
Jan 24, 2022
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_appstore_base: handle service worker registration error
parent
e89e053a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_redirect_page_js.js
...m/web_page_module/gadget_ojs_appstore_redirect_page_js.js
+11
-6
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_redirect_page_js.xml
.../web_page_module/gadget_ojs_appstore_redirect_page_js.xml
+2
-2
No files found.
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_redirect_page_js.js
View file @
1ed4cce0
/*globals window, document, RSVP, rJS, navigator*/
/*globals window, document, RSVP, rJS, navigator
, console
*/
/*jslint indent: 2, maxlen: 80, nomen: true*/
(
function
(
window
,
document
,
RSVP
,
rJS
,
navigator
)
{
(
function
(
window
,
document
,
RSVP
,
rJS
,
navigator
,
console
)
{
"
use strict
"
;
rJS
(
window
)
...
...
@@ -13,8 +13,13 @@
// Make this redirection compatible with no-service-worker browsers
if
(
'
serviceWorker
'
in
navigator
)
{
queue
.
push
(
function
()
{
return
navigator
.
serviceWorker
.
register
(
"
gadget_erp5_serviceworker.js
"
);
return
navigator
.
serviceWorker
.
register
(
"
gadget_erp5_serviceworker.js
"
);
})
.
push
(
undefined
,
function
(
error
)
{
// If service worker installation is rejected,
// do not prevent the site to be usable, even if slower
console
.
warn
(
"
Service worker registration failed
"
,
error
);
});
}
return
queue
...
...
@@ -24,4 +29,4 @@
});
});
}(
window
,
document
,
RSVP
,
rJS
,
navigator
));
\ No newline at end of file
}(
window
,
document
,
RSVP
,
rJS
,
navigator
,
console
));
\ No newline at end of file
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_redirect_page_js.xml
View file @
1ed4cce0
...
...
@@ -244,7 +244,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
99
6.52764.3468.58419
</string>
</value>
<value>
<string>
99
7.60607.41300.1194
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -262,7 +262,7 @@
</tuple>
<state>
<tuple>
<float>
16
39416568.49
</float>
<float>
16
43817599.53
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment