|
347 | 347 | disabled = false; |
348 | 348 | } |
349 | 349 |
|
350 | | - async function abortUpdates() { |
351 | | - // sends message to swift side canceling all URLSession tasks |
352 | | - sendNativeMessage({ name: "CANCEL_REQUESTS" }); |
353 | | - // timestamp for checking updates happens right before update fetching |
354 | | - // that means when this function runs the timestamp has already been saved |
355 | | - // reloading the window will essentially skip the update check |
356 | | - // since the subsequent popup load will not check for updates |
357 | | - window.location.reload(); |
358 | | - } |
| 350 | + /** |
| 351 | + * Not working due to: https://github.com/quoid/userscripts/issues/276#issuecomment-3507547737 |
| 352 | + */ |
| 353 | + // async function abortUpdates() { |
| 354 | + // // sends message to swift side canceling all URLSession tasks |
| 355 | + // sendNativeMessage({ name: "CANCEL_REQUESTS" }); |
| 356 | + // // timestamp for checking updates happens right before update fetching |
| 357 | + // // that means when this function runs the timestamp has already been saved |
| 358 | + // // reloading the window will essentially skip the update check |
| 359 | + // // since the subsequent popup load will not check for updates |
| 360 | + // window.location.reload(); |
| 361 | + // } |
359 | 362 |
|
360 | 363 | /** @type {import("svelte/elements").UIEventHandler<Window>} */ |
361 | 364 | // async function resizeHandler(event) { |
|
476 | 479 | loading={disabled} |
477 | 480 | closeClick={() => (showUpdates = false)} |
478 | 481 | showLoaderOnDisabled={true} |
479 | | - abortClick={abortUpdates} |
480 | 482 | abort={showUpdates} |
481 | 483 | > |
482 | 484 | <UpdateView |
|
568 | 570 | </div> |
569 | 571 | <div class="main {rowColors || ''}" bind:this={main}> |
570 | 572 | {#if loading} |
571 | | - <Loader abortClick={abortUpdates} {abort} /> |
| 573 | + <Loader {abort} /> |
572 | 574 | {:else if inactive} |
573 | 575 | <div class="none">Popup inactive on extension page</div> |
574 | 576 | {:else if firstGuide} |
|
0 commit comments