pxt-microbit icon indicating copy to clipboard operation
pxt-microbit copied to clipboard

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

Open microbit-carlos opened this issue 1 year ago • 0 comments

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):

  • OS: macOs
  • Browser: Chrome
  • Version: 124

Smartphone (please complete the following information):

  • Device: Samsung S20
  • OS: Android 13
  • Browser: Chrome
  • Version: 125

And also with the micro:bit Android app.

Additional context N/A

microbit-carlos avatar May 21 '24 16:05 microbit-carlos