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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ekaterina
erp5
Commits
caeee0e1
Commit
caeee0e1
authored
Oct 31, 2017
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs] Bootloader, remove unnecessary if statement
/reviewed-on
nexedi/erp5!474
parent
459e0ee7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
16 deletions
+10
-16
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_serviceworker_js.js
...age_module/gadget_officejs_bootloader_serviceworker_js.js
+2
-5
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_serviceworker_js.xml
...ge_module/gadget_officejs_bootloader_serviceworker_js.xml
+3
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.js
...web_page_module/gadget_officejs_jio_appcachestorage_js.js
+2
-5
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.xml
...eb_page_module/gadget_officejs_jio_appcachestorage_js.xml
+3
-3
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_serviceworker_js.js
View file @
caeee0e1
...
@@ -47,13 +47,10 @@ var global = self, window = self;
...
@@ -47,13 +47,10 @@ var global = self, window = self;
});
});
self
.
addEventListener
(
"
fetch
"
,
function
(
event
)
{
self
.
addEventListener
(
"
fetch
"
,
function
(
event
)
{
var
relative_url
=
event
.
request
.
url
.
split
(
"
#
"
)[
0
]
var
relative_url
=
'
./
'
+
event
.
request
.
url
.
split
(
"
#
"
)[
0
]
.
replace
(
self
.
registration
.
scope
,
""
)
.
replace
(
self
.
registration
.
scope
,
""
)
.
replace
(
self
.
version_url
,
""
);
.
replace
(
self
.
version_url
,
""
);
if
(
relative_url
===
""
)
{
if
(
relative_url
===
'
./no-cache
'
)
{
relative_url
=
"
/
"
;
}
if
(
relative_url
===
'
no-cache
'
)
{
event
.
respondWith
(
new
Response
(
self
.
cache_list
));
event
.
respondWith
(
new
Response
(
self
.
cache_list
));
return
;
return
;
}
}
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_serviceworker_js.xml
View file @
caeee0e1
...
@@ -213,7 +213,7 @@
...
@@ -213,7 +213,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -227,7 +227,7 @@
...
@@ -227,7 +227,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
1.30858.43041.57309
</string>
</value>
<value>
<string>
96
3.3430.40377.1177
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -245,7 +245,7 @@
...
@@ -245,7 +245,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
150
2980874.99
</float>
<float>
150
9458653.61
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.js
View file @
caeee0e1
...
@@ -13,12 +13,12 @@
...
@@ -13,12 +13,12 @@
spec
.
origin_url
:
window
.
location
.
href
;
spec
.
origin_url
:
window
.
location
.
href
;
this
.
_version
=
spec
.
version
||
""
;
this
.
_version
=
spec
.
version
||
""
;
this
.
_gadget_list
=
[];
this
.
_gadget_list
=
[];
this
.
_prefix
=
spec
.
prefix
||
""
;
this
.
_prefix
=
spec
.
prefix
||
"
./
"
;
this
.
_documents
=
{};
this
.
_documents
=
{};
// Harcoded here, find a better way.
// Harcoded here, find a better way.
if
(
this
.
_take_installer
)
{
if
(
this
.
_take_installer
)
{
this
.
_relative_url_list
=
[
this
.
_relative_url_list
=
[
this
.
_prefix
+
"
/
"
,
this
.
_prefix
,
this
.
_prefix
+
"
gadget_officejs_bootloader.js
"
,
this
.
_prefix
+
"
gadget_officejs_bootloader.js
"
,
this
.
_prefix
+
"
gadget_officejs_bootloader_presentation.html
"
,
this
.
_prefix
+
"
gadget_officejs_bootloader_presentation.html
"
,
this
.
_prefix
+
"
gadget_officejs_bootloader_presentation.js
"
,
this
.
_prefix
+
"
gadget_officejs_bootloader_presentation.js
"
,
...
@@ -57,9 +57,6 @@
...
@@ -57,9 +57,6 @@
return
new
Blob
([]);
return
new
Blob
([]);
});
});
}
}
if
(
relative_url
===
'
/
'
)
{
relative_url
=
''
;
}
return
new
RSVP
.
Queue
()
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
return
jIO
.
util
.
ajax
({
return
jIO
.
util
.
ajax
({
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_appcachestorage_js.xml
View file @
caeee0e1
...
@@ -225,7 +225,7 @@
...
@@ -225,7 +225,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -239,7 +239,7 @@
...
@@ -239,7 +239,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
963.
8873.18455.40004
</string>
</value>
<value>
<string>
963.
9196.27669.54835
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -257,7 +257,7 @@
...
@@ -257,7 +257,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
15094
39359.17
</float>
<float>
15094
59715.1
</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