dsh-unlag 1.9.61 → 1.9.63

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 +9 -1
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -219,7 +219,15 @@ window.__ModuleLoader__.load({
219
219
  held('verify');
220
220
  return 'blocked';
221
221
  }
222
- if (!response.ok) {
222
+ // The answer is read outside the try above, and a page shares one `fetch` with every plugin:
223
+ // an answer that cannot say whether it is ok is treated as no answer, never as a throw.
224
+ let served = false;
225
+ try {
226
+ served = response?.ok === true;
227
+ } catch {
228
+ served = false;
229
+ }
230
+ if (served === false) {
223
231
  held('verify');
224
232
  return 'blocked';
225
233
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-unlag",
3
- "version": "1.9.61",
3
+ "version": "1.9.63",
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",