You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
document.onFocus() is false for a variety of reasons in dev, meaning I am getting Error: Unsolicited request errors frequently.
Most common reasion is that I have hot reloading setup so every time I save my source code files the browser reloads automatically causing autoConnect to fail as the document isn't in focus during the reload.
Another common case I come across is if my dev tools are open, and I press F5 or Ctrl+R to refresh the page, since the dev tools are focused, document.onFocus() is again false and autoConnect fails.
Maybe replacing with document.hidden from the Page Visibility API is acceptible? or relaxing the conditions for autoconnect (possibly just on localhost?)
The text was updated successfully, but these errors were encountered:
https://github.com/alephium/extension-wallet/blob/f21129975ff249dde184a12e952583af143798b9/packages/extension/src/inpage/alephiumWindowObject.ts#L337C6-L337C21
document.onFocus()
is false for a variety of reasons in dev, meaning I am gettingError: Unsolicited request
errors frequently.Most common reasion is that I have hot reloading setup so every time I save my source code files the browser reloads automatically causing autoConnect to fail as the document isn't in focus during the reload.
Another common case I come across is if my dev tools are open, and I press F5 or Ctrl+R to refresh the page, since the dev tools are focused,
document.onFocus()
is again false and autoConnect fails.Maybe replacing with
document.hidden
from the Page Visibility API is acceptible? or relaxing the conditions for autoconnect (possibly just on localhost?)The text was updated successfully, but these errors were encountered: