Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drawing-app
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
Model registry
Operate
Environments
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
sweng-group-15
drawing-app
Merge requests
!4
The source project of this merge request has been removed.
Add a service worker, manifest and logo
Merged
Add a service worker, manifest and logo
(removed):service-worker
into
master
Overview
0
Commits
1
Pipelines
0
Changes
4
Merged
Nayeem Rahman
requested to merge
(removed):service-worker
into
master
5 years ago
Overview
0
Pipelines
0
Changes
4
Expand
Closes
#11 (closed)
.
0
0
Merge request reports
Viewing commit
06028668
Show latest version
4 files
+
95
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
06028668
Add a service worker, manifest and logo
· 06028668
Nayeem Rahman
authored
5 years ago
public/index.html
+
16
−
0
Options
@@ -2,6 +2,22 @@
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
/>
<link
rel=
"manifest"
href=
"manifest.json"
>
<link
rel=
"shortcut icon"
href=
"logo.png"
>
<script>
if
(
navigator
.
serviceWorker
)
{
navigator
.
serviceWorker
.
register
(
"
service-worker.js
"
)
.
then
(
(
registration
)
=>
console
.
log
(
`Service worker registered on scope
${
registration
.
scope
}
`
,
),
(
reason
)
=>
console
.
log
(
`Service worker failed to register ~
${
reason
}
`
),
)
}
</script>
</head>
<body>
<div>
Loading