Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Papermerge.Js
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
Papermerge.Js
Commits
1c9eb6d5
Commit
1c9eb6d5
authored
3 years ago
by
Eugen Ciur
Browse files
Options
Downloads
Patches
Plain Diff
register a hello world service worker
parent
1cc5d900
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/index.html
+6
-1
6 additions, 1 deletion
app/index.html
ember-cli-build.js
+1
-0
1 addition, 0 deletions
ember-cli-build.js
public/assets/service-worker.js
+1
-0
1 addition, 0 deletions
public/assets/service-worker.js
with
8 additions
and
1 deletion
app/index.html
+
6
−
1
View file @
1c9eb6d5
...
...
@@ -3,7 +3,7 @@
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<title>
Papermerge
</title>
<title>
Papermerge
DMS
</title>
<meta
name=
"description"
content=
"Papermerge - document management system for digital archives"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
...
...
@@ -20,6 +20,11 @@
<script
src=
"{{rootURL}}assets/vendor.js"
></script>
<script
src=
"{{rootURL}}assets/papermerge.js"
></script>
<script>
navigator
.
serviceWorker
.
register
(
'
{{rootURL}}assets/service-worker.js
'
)
.
then
(
reg
=>
console
.
log
(
'
Service worker registered
'
,
reg
))
.
catch
(
err
=>
console
.
log
(
'
There was an error while registering service worker
'
,
err
));
</script>
{{content-for "body-footer"}}
</body>
...
...
This diff is collapsed.
Click to expand it.
ember-cli-build.js
+
1
−
0
View file @
1c9eb6d5
...
...
@@ -22,6 +22,7 @@ module.exports = function (defaults) {
// modules that you would like to import into your application
// please specify an object with the list of modules as keys
// along with the exports of each module as its value.
app
.
import
(
'
worker.js
'
);
return
app
.
toTree
();
};
This diff is collapsed.
Click to expand it.
public/assets/service-worker.js
0 → 100644
+
1
−
0
View file @
1c9eb6d5
console
.
log
(
'
hello, I am service worker
'
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment