top of page

Forum Comments

Recent Android update adds annoying address-bar
In Feature requests
Stephen Wicklund
Nov 17, 2022
@David Catuhe I tried opening urzagatherer.app in my Android Firefox, and got the same issue as discedunt (of deck cards being unclickable/unopenable). I connected my phone to my PC and opened dev-tools, and I think I found the issue... In "deckCard.tsx", there is the "DeckCard.onClick" handler, and in it, there is this code block: ``` if (_evt.buttons !== 0) { _evt.preventDefault(); _evt.stopPropagation(); return; } ``` In desktop Firefox the above works fine, because when clicked with an actual mouse, the "buttons" field has "0" as the value. (I tested by running this in console: `$0.onclick=e=>{console.log(e); debugger;}`) In mobile Firefox however, the "buttons" field has "1" as the value, when tapped with one's finger. (again, checked by running the code above in console) I have not 100% confirmed that the above is the issue (for example, it's possible React's synthetic-event uses a different value for the "buttons" field than the native value checked with my console code), but I'm pretty sure it is the cause of the problem. (I tried adding a breakpoint to the original code to confirm the value mismatch, but for some reason, the remote Firefox dev-tools was failing to insert the breakpoint in the place I wanted.) EDIT: Here is the MDN reference page on the subject (doesn't fully explain why Chrome gives a different value than Firefox on Android, but does show how both "0" and "1" are "valid values" for a left-click): https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons
0
Service Worker outdated/not-updating
In Feature requests
Stephen Wicklund
Aug 28, 2022
Okay, I think I finally fixed the core issue. (knocking on wood) What I did (after disabling the workaround extension for blocking/gating all service-workers): 1) Closed all UrzaGatherer tabs. 2) Turned off my internet. 3) Opened UrzaGatherer, went to Settings, then pressed "Clear local cache" in the database section. 4) Turned internet back on. 5) Refreshed the page. (and again, and again, and in new tab, and with dev-tools open and closed, and with hard-refresh, etc. to make sure the fix persisted) So the key seems to be the "Clear local cache" button in the "Database" section at the bottom of settings. It's odd that that did it though, since as mentioned I already tried clearing all cache for UrzaGatherer through the dev-tools; but maybe UrzaGatherer has some kind of "cache" that is not seen by the dev-tools cache-clearing tool. If the app's "Clear local cache" button is not supposed to have anything to do with the service-worker code (ie. app version), then my suspicion is that maybe there was something about what the app was caching that was making the app's state "invalid" or "over a quota" or something, causing the attempt to update the cached service-worker code (to the newer versions) to consistently fail. And so by pressing "Clear local cache", it restores the app's state to something that wasn't invalid/over-quota, freeing that up. Anyway, the above is just a guess; the fix above worked for me (and without needing that service-worker-blocker extension anymore), so I am content not knowing the full details.
0
0

Stephen Wicklund

More actions
bottom of page