diff options
Diffstat (limited to 'contents/ui/kanvas.js')
-rw-r--r-- | contents/ui/kanvas.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contents/ui/kanvas.js b/contents/ui/kanvas.js index 3162474..dbd2526 100644 --- a/contents/ui/kanvas.js +++ b/contents/ui/kanvas.js @@ -31,6 +31,9 @@ function callApi(path, perPage, callback) { } function syncCanvas() { + if (networkStatus.networkStatus != "Connected") { + return; + } const courses = plasmoid.configuration.courses.split("\n").map( // each line in the "courses" config consists of // a numeric course id, a space, and a course code |