microsoft / pxt-microbit

A Blocks / JavaScript code editor for the micro:bit built on Microsoft MakeCode
https://makecode.microbit.org
Other
713 stars 588 forks source link

Offline MakeCode in the browser doesn't work if the URL has query parameters #5687

Closed microbit-carlos closed 2 months ago

microbit-carlos commented 4 months ago

Describe the bug For example, for the Android app, MakeCode is loaded with the /?androidapp=57 parameter, which doesn't work offline.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://makecode.microbit.org
  2. Turn off the internet
  3. Reload the page, Makecode loads correctly ✅
  4. Go back online
  5. Go to https://makecode.microbit.org/?androidapp=57
  6. Turn of the internet
  7. Reload the page, MakeCode doesn't load ❌

Expected behavior A MakeCode URL with a query parameter to work offline if it has been visited at least once before online.

Screenshots N/A

micro:bit version (please complete the following information): N/A

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context N/A