dsh-unlag 1.7.5 → 1.7.6
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 +5 -0
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -122,6 +122,9 @@ window.__ModuleLoader__.load({
|
|
|
122
122
|
return true;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
// Every row kind a document boot understands; an unknown one ends the document.
|
|
126
|
+
const STARTUP_ROW_KINDS = new Set(['global', 'script', 'script-src', 'script-preload', 'style', 'html']);
|
|
127
|
+
|
|
125
128
|
/**
|
|
126
129
|
* The startup list the desktop shell hands the next document, exactly as it hands it. The
|
|
127
130
|
* shell reads that list once when the app starts and replays the same copy for every document
|
|
@@ -153,6 +156,8 @@ window.__ModuleLoader__.load({
|
|
|
153
156
|
let frozen = null;
|
|
154
157
|
for (const row of rows) {
|
|
155
158
|
if (row === null || typeof row !== 'object') continue;
|
|
159
|
+
if (typeof row.kind !== 'string' || !STARTUP_ROW_KINDS.has(row.kind)) return false;
|
|
160
|
+
if (row.kind === 'script-src' && (typeof row.src !== 'string' || row.src === '')) return false;
|
|
156
161
|
if (typeof row.src === 'string' && row.src !== '') scripts.push(row.src);
|
|
157
162
|
if (row.kind !== 'global' || row.name !== '__DSH_BOOT__') continue; // ui-copy-ignore
|
|
158
163
|
let value = row.value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-unlag",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "One press applies plugin edits right away and brings a laggy interface back; running turns, queued messages and unsent input are untouched, and nothing restarts.",
|
|
6
6
|
"license": "MIT",
|