-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All steps are Completed #223
base: develop
Are you sure you want to change the base?
Conversation
This pull request introduces 1 alert when merging e29042b into 53f11f1 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 5c1519d into 53f11f1 - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are drop-in replacements. to be done later since we need to provide our own logo with these requirements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ive left a few suggestions
public/index.html
Outdated
if ("serviceWorker" in navigator) { | ||
window.addEventListener("load", function () { | ||
navigator.serviceWorker.register("/serviceworker.js").then( | ||
function (registration) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enable this only if the DEBUG variable is set to true. you can import debug variable from constants.js;
If there isn't one, then create a variable as such. follow the pattern there.
public/index.html
Outdated
div.style.display = "none"; | ||
// Clear the deferredPrompt so it can be garbage collected | ||
deferredPrompt = null; | ||
// Optionally, send analytics event to indicate successful install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to trigger alert. although this would be a nice to have event trigger, you can add a task here like:
TODO: send analytics event to indicate successful pwa app install
@@ -0,0 +1,39 @@ | |||
/* eslint-disable array-callback-return */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you wrap this inside a class and export?
event.waitUntil( | ||
caches.open(CACHE_NAME) | ||
.then((cache) => { | ||
console.log('Opened cache'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you are debugging using these logs, print them only if DEBUG is enabled. see my comment on DEBUG somewhere above in the review
@shehzad-haroon may want to fix the file conflict on public/index.html |
branch this out in a separate scss/css and import it here(Solved) |
@shehzad-haroon
|
This change is