-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Executed changes suggested by codefactor #663
Conversation
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.
@ram690514 Most of this looks good, but please see comments for needed changes.
Additionally, please rename this PR to something more informative, like "Implement changes suggested by codefactor". |
@Jaifroid . I updated the pull request .please check it |
@ram690514 please answer the review comments and questions left here in the review. |
@ram690514 I'm trying to get the automated tests to run against your PR. Please be patient. |
Okay
…On Thu, Oct 22, 2020 at 6:49 PM Jaifroid ***@***.***> wrote:
@ram690514 <https://github.com/ram690514> I'm trying to get the automated
tests to run against your PR. Please be patient.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#663 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARAWVBWARVNJJ5NYSDM672LSMAWOVANCNFSM4S2XLKJQ>
.
|
I will restore it
…On Fri, Oct 23, 2020 at 12:28 AM Jaifroid ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In www/js/app.js
<#663 (comment)>:
> @@ -490,7 +490,6 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'settingsStore','abstractFilesys
tmpMessageChannel.port1.onmessage = handleMessageChannelMessage;
// Send the init message to the ServiceWorker, with this MessageChannel as a parameter
navigator.serviceWorker.controller.postMessage({'action': 'init'}, [tmpMessageChannel.port2]);
- messageChannel = tmpMessageChannel;
OK, while this does not seem to be needed in Chromium, I don't think it's
safe to remove this line without extensive testing, because it is part of a
"keepalive" implementation. The SW API may well have been fixed in recent
times, but we can't be sure users do not have old browsers, so please
restore this line.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#663 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARAWVBRIZ7XYXXIHRNTVQSDSMB6GTANCNFSM4S2XLKJQ>
.
|
@ram690514 Travis CI has been broken, this is not ready to review. |
OK, tests are now passing. |
@ jaifroid : I will surely work on it . Thank you
…On Sat, Oct 24, 2020, 7:48 PM Jaifroid ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In www/js/app.js
<#663 (comment)>:
> @@ -514,7 +514,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'settingsStore','abstractFilesys
// So we have to disable it manually (even if it's still registered and active)
navigator.serviceWorker.controller.postMessage({'action': 'disable'});
messageChannel = null;
- }
+ }
@ram690514 <https://github.com/ram690514> It's minor, but there are two
added space here that should be removed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#663 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARAWVBQHLATEW7J2OA6G3U3SMLO45ANCNFSM4S2XLKJQ>
.
|
@ram690514 Any feedback? |
@mossroy Are you happy for this simple PR to be squashed and merged? |
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.
Just a minor remark on the loadJavaScriptJQuery
function.
Else OK to merge that
OK, except the typo on "avaialbale" |
OK, thanks. I need a better keyboard :-( ! |
Codefactor score on master before merge is C-. I doubt it'll change much with these few edits. Let's see. Squashing and merging now. |
No description provided.