Skip to content

Commit

Permalink
partial fix for offline login (when network is disconnected)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianopolous committed Apr 26, 2024
1 parent 467cf8d commit 68813c0
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/views/Drive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -921,15 +921,18 @@ module.exports = {
init() {
this.isStreamingAvailable = this.supportsStreaming();
let that = this;
streamSaver.createWriteStream("init-sw", null,
function (url) {
that.setup();
},
function (seekHi, seekLo, seekLength, uuid) {
},
undefined,
0
);
if (!window.navigator.onLine)
this.setup();
else {
streamSaver.createWriteStream("init-sw", null,
function (url) {
that.setup();
},
function (seekHi, seekLo, seekLength, uuid) {},
undefined,
0
);
}
},
setup() {
const that = this;
Expand Down

0 comments on commit 68813c0

Please sign in to comment.