fluxy-bot 0.10.1 → 0.10.3

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluxy-bot",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "releaseNotes": [
5
5
  "Adding a way for users to claim their fluxies on the fluxy.bot dashboard",
6
6
  "2. ",
@@ -57,11 +57,18 @@ export default function App() {
57
57
 
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
- const origReload = location.reload.bind(location);
61
- location.reload = () => {
62
- showSplash();
63
- requestAnimationFrame(() => requestAnimationFrame(() => origReload()));
64
- };
60
+ try {
61
+ const origReload = location.reload.bind(location);
62
+ Object.defineProperty(location, 'reload', {
63
+ configurable: true,
64
+ value: () => {
65
+ showSplash();
66
+ requestAnimationFrame(() => requestAnimationFrame(() => origReload()));
67
+ },
68
+ });
69
+ } catch {
70
+ // location.reload is non-configurable in some browsers — skip override
71
+ }
65
72
 
66
73
  // Vite HMR: show splash before a full-reload
67
74
  if (import.meta.hot) {