Skip to content

Commit a2e69c5

Browse files
committed
fix: download indicator flashing when image gallery not connected to network
1 parent 4750b07 commit a2e69c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3666,6 +3666,12 @@ function RemoteFunctions(config = {}) {
36663666
// prevent multiple downloads of the same image
36673667
if (thumbDiv.classList.contains('downloading')) { return; }
36683668

3669+
// check if internet connection is there or not before downloading
3670+
this._checkNetworkStatus();
3671+
if (this._isOffline) {
3672+
return;
3673+
}
3674+
36693675
// show download indicator
36703676
this._showDownloadIndicator(thumbDiv);
36713677

0 commit comments

Comments
 (0)