create-grist-widget 0.2.20 → 0.2.21
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/package.json
CHANGED
|
@@ -151,6 +151,12 @@ export function selfReloadSnippet(sha) {
|
|
|
151
151
|
}
|
|
152
152
|
} catch (e) { /* transient offline / 404 during publish: keep polling */ }
|
|
153
153
|
}
|
|
154
|
+
check(); // don't wait a full POLL_MS for the first check -- a plain
|
|
155
|
+
// (non-cache-busted) request for this very page can hit a stale
|
|
156
|
+
// CDN-cached index.html referencing JS assets a newer deploy
|
|
157
|
+
// already deleted, producing a blank/black screen until this
|
|
158
|
+
// fires; found live, waiting the full interval left that
|
|
159
|
+
// black screen up for ~5s on a fresh visit.
|
|
154
160
|
setInterval(check, POLL_MS);
|
|
155
161
|
})();
|
|
156
162
|
</script>`
|