diff options
author | 2021-07-31 15:28:23 +0530 | |
---|---|---|
committer | 2021-07-31 15:28:23 +0530 | |
commit | 97697e3d069972844b2912a93022f4a4904a40d6 (patch) | |
tree | 53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/googleclassroom/webview.js | |
parent | Allow any url in the custom-service to allow for sites like 'http://translate... (diff) | |
download | ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.gz ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.zst ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.zip |
Fixed eslintrc as root for this folder; Reformatted all files.
Diffstat (limited to 'recipes/googleclassroom/webview.js')
-rw-r--r-- | recipes/googleclassroom/webview.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/recipes/googleclassroom/webview.js b/recipes/googleclassroom/webview.js index c53fe10..0421f21 100644 --- a/recipes/googleclassroom/webview.js +++ b/recipes/googleclassroom/webview.js | |||
@@ -1,11 +1,9 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => { | 1 | module.exports = Franz => { |
4 | const getMessages = function getMessages() { | 2 | const getMessages = function getMessages() { |
5 | var homework = 0 | 3 | let homework = 0; |
6 | const upcomingAssignment = document.getElementsByClassName('hrUpcomingAssignmentGroup') | 4 | const upcomingAssignment = document.getElementsByClassName('hrUpcomingAssignmentGroup'); |
7 | if (upcomingAssignment.length != 0) { | 5 | if (upcomingAssignment.length != 0) { |
8 | var i; | 6 | let i; |
9 | for (i = 0; i < upcomingAssignment.length; i++) { | 7 | for (i = 0; i < upcomingAssignment.length; i++) { |
10 | homework += upcomingAssignment[i].childElementCount; | 8 | homework += upcomingAssignment[i].childElementCount; |
11 | } | 9 | } |
@@ -14,4 +12,4 @@ module.exports = Franz => { | |||
14 | }; | 12 | }; |
15 | 13 | ||
16 | Franz.loop(getMessages); | 14 | Franz.loop(getMessages); |
17 | }; \ No newline at end of file | 15 | }; |