dsh-unlag 1.9.9 → 1.9.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/client.js +10 -0
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -581,6 +581,7 @@ window.__ModuleLoader__.load({
581
581
  return () => clearTimeout(timer);
582
582
  }, [notice]);
583
583
 
584
+
584
585
  const style = pending
585
586
  ? { ...BUTTON_STYLE, opacity: 0.4 }
586
587
  : hover
@@ -658,6 +659,15 @@ window.__ModuleLoader__.load({
658
659
  pressInFlight = false;
659
660
  // The document goes away on a rebuild, so the button only needs re-enabling when it does not.
660
661
  if (!navigated) setPending(false);
662
+ else {
663
+ setTimeout(() => {
664
+ // Still here after asking for a rebuild: the page held the navigation. Say what
665
+ // happened and take the press back, so the button is never left unresponsive.
666
+ report('held', 'navigation');
667
+ setPending(false);
668
+ setNotice(noticeFor('replaced'));
669
+ }, 6000); // ui-copy-ignore
670
+ }
661
671
  }
662
672
  };
663
673
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-unlag",
3
- "version": "1.9.9",
3
+ "version": "1.9.10",
4
4
  "type": "module",
5
5
  "description": "A press applies plugin edits right away and brings a laggy interface back; automatic reloading stays off unless you turn it on, so the press is the only trigger, and nothing restarts.",
6
6
  "license": "MIT",