Parcourir la source

Update desktop.mjs (#1500)

Lutz Roeder il y a 2 mois
Parent
commit
dfd7d13574
1 fichiers modifiés avec 10 ajouts et 6 suppressions
  1. 10 6
      source/desktop.mjs

+ 10 - 6
source/desktop.mjs

@@ -102,15 +102,19 @@ desktop.Host = class {
         this._view = view;
         if (process.env.SNAP) {
             this.document.body.classList.remove('spinner');
-            await this.message('Please migrate as Snap support is being discontinued.', null, 'Migrate');
-            this.openURL('https://github.com/lutzroeder/netron/issues/1500');
-            this.document.body.classList.add('spinner');
+            for (;;) {
+                // eslint-disable-next-line no-await-in-loop
+                await this.message('Please migrate as Snap support has been discontinued.', null, 'Migrate');
+                this.openURL('https://github.com/lutzroeder/netron/issues/1500');
+            }
         }
         if (process.env.APPIMAGE) {
             this.document.body.classList.remove('spinner');
-            await this.message('Please migrate as AppImage support is being discontinued.', null, 'Migrate');
-            this.openURL('https://github.com/lutzroeder/netron/issues/1500');
-            this.document.body.classList.add('spinner');
+            for (;;) {
+                // eslint-disable-next-line no-await-in-loop
+                await this.message('Please migrate as AppImage support has been discontinued.', null, 'Migrate');
+                this.openURL('https://github.com/lutzroeder/netron/issues/1500');
+            }
         }
         const age = async () => {
             const days = (new Date() - new Date(this._environment.date)) / (24 * 60 * 60 * 1000);