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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
8a1d7839
Commit
8a1d7839
authored
Sep 09, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_appstore_base: appcache API has been dropped from chrome
parent
d8746243
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_redirect_page_html.html
...b_page_module/gadget_ojs_appstore_redirect_page_html.html
+12
-6
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_redirect_page_html.xml
...eb_page_module/gadget_ojs_appstore_redirect_page_html.xml
+2
-2
No files found.
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_redirect_page_html.html
View file @
8a1d7839
...
@@ -5,12 +5,18 @@
...
@@ -5,12 +5,18 @@
function
redirect_version
()
{
function
redirect_version
()
{
document
.
location
.
replace
(
"
${latest_version}/
"
+
document
.
location
.
hash
)
document
.
location
.
replace
(
"
${latest_version}/
"
+
document
.
location
.
hash
)
};
};
window
.
applicationCache
.
addEventListener
(
'
cached
'
,
redirect_version
);
window
.
applicationCache
.
addEventListener
(
'
noupdate
'
,
redirect_version
);
var
timeout_duration
=
10000
;
window
.
applicationCache
.
addEventListener
(
'
error
'
,
redirect_version
);
try
{
window
.
applicationCache
.
addEventListener
(
'
updateready
'
,
function
(){
window
.
location
.
reload
()});
window
.
applicationCache
.
addEventListener
(
'
cached
'
,
redirect_version
);
// XXX This is a hack for when the network is too slow.
window
.
applicationCache
.
addEventListener
(
'
noupdate
'
,
redirect_version
);
window
.
setTimeout
(
redirect_version
,
10000
);
window
.
applicationCache
.
addEventListener
(
'
error
'
,
redirect_version
);
window
.
applicationCache
.
addEventListener
(
'
updateready
'
,
function
(){
window
.
location
.
reload
()});
}
catch
(
e
)
{
timeout_duration
=
1
;
}
// XXX This is a hack for when the network is too slow, or if appcache is not supported anymore
window
.
setTimeout
(
redirect_version
,
timeout_duration
);
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_redirect_page_html.xml
View file @
8a1d7839
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
59.46608.34939.31368
</string>
</value>
<value>
<string>
9
84.41193.2075.29252
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -266,7 +266,7 @@
...
@@ -266,7 +266,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
497604340
.46
</float>
<float>
1
599639175
.46
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</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