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
Labels
Merge Requests
149
Merge Requests
149
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
b7205f93
Commit
b7205f93
authored
Aug 08, 2019
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: better error handling on appcache sync
parent
43104662
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_local_jio_js.js
...plateItem/web_page_module/gadget_officejs_local_jio_js.js
+7
-8
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_local_jio_js.js
View file @
b7205f93
...
...
@@ -92,7 +92,7 @@
}
}
}
else
{
//
raw_dict is a blob
//
ignore non configuration elements
return
raw_dict
;
}
return
return_dict
;
...
...
@@ -203,13 +203,6 @@
id
=
configuration_ids_list
[
i
];
if
(
id
.
startsWith
(
hateoas_section
))
{
id
=
id
.
replace
(
hateoas_section_and_view
,
""
);
}
else
{
parser
=
document
.
createElement
(
'
a
'
);
parser
.
href
=
id
;
urlParams
=
new
URLSearchParams
(
parser
.
search
);
id
=
urlParams
.
get
(
"
relative_url
"
);
}
if
(
id
!==
null
)
{
// ignore non configuration elements
id
=
atob
(
id
);
content
=
processHateoasDict
(
content_list
[
i
]);
promise_list
.
push
(
appcache_storage
.
put
(
id
,
content
));
...
...
@@ -220,6 +213,12 @@
.
push
(
function
()
{
return
appcache_storage
.
put
(
sync_flag
,
{})
.
push
(
undefined
);
},
function
(
error
)
{
console
.
log
(
"
Error while appcache-local
"
+
"
storage synchronization. Bad
"
+
"
configuration maybe?
"
);
console
.
log
(
error
);
throw
error
;
});
},
function
(
error
)
{
console
.
log
(
"
Error while appcache-local
"
+
...
...
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