Skip to content

Commit

Permalink
Updated Service Worker and Index.html
Browse files Browse the repository at this point in the history
Renamed sw.js -> serviceworker.js
Added hyperlink to Moneroocean website in index.html
  • Loading branch information
NajmAjmal-old committed Nov 14, 2023
1 parent e34a823 commit f1dc70a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
</head>
<body>
<h1>Mining...</h1>
<p>View mining progress <a href="https://moneroocean.stream">here</a></p>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js').then(registration => {
navigator.serviceWorker.register('/serviceworker.js').then(registration => {
console.log('Service Worker registered with scope:', registration.scope);
}).catch(error => {
console.error('Service Worker registration failed:', error);
Expand Down
File renamed without changes.

1 comment on commit f1dc70a

@vercel
Copy link

@vercel vercel bot commented on f1dc70a Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

xmr-webminer – ./

xmr-webminer-najmajmal.vercel.app
xmr-webminer.vercel.app
xmr-webminer-git-main-najmajmal.vercel.app

Please sign in to comment.