dsh-unlag 1.9.70 → 1.9.71
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.
- package/client.js +10 -2
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -570,8 +570,16 @@ window.__ModuleLoader__.load({
|
|
|
570
570
|
|
|
571
571
|
/** Re-enter the interface on a fresh document, keeping the current view in the address. */
|
|
572
572
|
function reloadFreshPage() {
|
|
573
|
-
|
|
574
|
-
|
|
573
|
+
// The document's own description decides the address it comes back on. A value that cannot be
|
|
574
|
+
// read must cost a readable address, not the rebuild: this runs after the code is already
|
|
575
|
+
// replaced, so throwing here would leave the page on the old document and report a failure.
|
|
576
|
+
let stamp = String(Date.now());
|
|
577
|
+
try {
|
|
578
|
+
const graph = window.__DSH_BOOT__;
|
|
579
|
+
if (typeof graph?.rev === 'string' && graph.rev !== '') stamp = graph.rev;
|
|
580
|
+
} catch {
|
|
581
|
+
stamp = String(Date.now());
|
|
582
|
+
}
|
|
575
583
|
// The address is the page's own; a document whose address cannot be parsed still has to come
|
|
576
584
|
// back as a fresh one, because the code behind it has already been replaced.
|
|
577
585
|
let target = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-unlag",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.71",
|
|
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",
|