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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
preetwinder
erp5
Commits
f4271a16
Commit
f4271a16
authored
Aug 09, 2017
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs] Add test serviceWorker in navigator, in bootloader
parent
becb33d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
22 deletions
+25
-22
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_js.js
...lateItem/web_page_module/gadget_officejs_bootloader_js.js
+23
-20
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_js.xml
...ateItem/web_page_module/gadget_officejs_bootloader_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_js.js
View file @
f4271a16
...
@@ -141,28 +141,31 @@ sub gadget does not have all aquired Method at this point*/
...
@@ -141,28 +141,31 @@ sub gadget does not have all aquired Method at this point*/
.
declareMethod
(
"
install
"
,
function
()
{
.
declareMethod
(
"
install
"
,
function
()
{
var
gadget
=
this
,
var
gadget
=
this
,
storage
=
createStorage
(
gadget
);
storage
=
createStorage
(
gadget
);
return
new
RSVP
.
Queue
()
if
(
navigator
.
serviceWorker
!==
undefined
)
{
.
push
(
function
()
{
return
new
RSVP
.
Queue
()
return
navigator
.
serviceWorker
.
register
(
.
push
(
function
()
{
"
gadget_officejs_bootloader_serviceworker.js
"
return
navigator
.
serviceWorker
.
register
(
);
"
gadget_officejs_bootloader_serviceworker.js
"
})
);
.
push
(
function
()
{
})
return
storage
.
repair
();
.
push
(
function
()
{
})
return
storage
.
repair
();
.
push
(
undefined
,
function
(
error
)
{
return
gadget
.
changeState
({
retry
:
gadget
.
state
.
retry
!==
undefined
?
gadget
.
state
.
retry
+
1
:
0
,
error
:
error
})
})
.
push
(
function
()
{
.
push
(
undefined
,
function
(
error
)
{
return
RSVP
.
delay
(
1000
);
return
gadget
.
changeState
({
retry
:
gadget
.
state
.
retry
!==
undefined
?
gadget
.
state
.
retry
+
1
:
0
,
error
:
error
})
})
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
install
();
return
RSVP
.
delay
(
1000
);
});
})
});
.
push
(
function
()
{
return
gadget
.
install
();
});
});
}
return
;
});
});
}(
window
,
document
,
RSVP
,
rJS
,
jIO
,
navigator
,
URL
));
}(
window
,
document
,
RSVP
,
rJS
,
jIO
,
navigator
,
URL
));
\ No newline at end of file
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bootloader_js.xml
View file @
f4271a16
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
961.19
028.47293.9045
</string>
</value>
<value>
<string>
961.19
383.11182.45687
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -254,7 +254,7 @@
...
@@ -254,7 +254,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
15022
88666.4
8
</float>
<float>
15022
91956.9
8
</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