fluxy-bot 0.10.1 → 0.10.2
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
|
@@ -58,10 +58,13 @@ export default function App() {
|
|
|
58
58
|
// Wrap location.reload: show splash, wait for paint, then reload.
|
|
59
59
|
// This ensures the dark splash is visible during the brief unload→load gap.
|
|
60
60
|
const origReload = location.reload.bind(location);
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
Object.defineProperty(location, 'reload', {
|
|
62
|
+
configurable: true,
|
|
63
|
+
value: () => {
|
|
64
|
+
showSplash();
|
|
65
|
+
requestAnimationFrame(() => requestAnimationFrame(() => origReload()));
|
|
66
|
+
},
|
|
67
|
+
});
|
|
65
68
|
|
|
66
69
|
// Vite HMR: show splash before a full-reload
|
|
67
70
|
if (import.meta.hot) {
|