Skip to content

Fix settings in iframe editor embed#9546

Merged
jwunderl merged 4 commits into
masterfrom
fixSettingsInIFrame
Jun 8, 2023
Merged

Fix settings in iframe editor embed#9546
jwunderl merged 4 commits into
masterfrom
fixSettingsInIFrame

Conversation

@jwunderl
Copy link
Copy Markdown
Member

@jwunderl jwunderl commented Jun 8, 2023

fix microsoft/pxt-microbit#5209

Here's a forked build from the one in that issue pointing at a build with this change: https://wyttlr.csb.app/ (there will be an overlay button in the bottom right to see the code of the sandbox)
microbit build: https://makecode.microbit.org/app/4e857c4bdf435b028015828dbd8d4af76e3d2c48-72860080ee
arcade build: https://arcade.makecode.com/app/15ee7b4f6abf540a00d30fa275c70925a5bdceeb-35abd09842--skillmap

I believe the change in pxtlib/auth.ts should technically be enough to cover this regression (+ a673adf to make it so language / high contrast persist through refreshes), but I ran into some other things while trying to figure out why it wasn't working so poked around a bit (e.g. we have some logic to cut auth from embed scenarios, but it was running after some initialization code that was leaving around some half initialized login state).

@jwunderl jwunderl requested a review from eanders-ms June 8, 2023 01:52
Copy link
Copy Markdown
Contributor

@eanders-ms eanders-ms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jwunderl jwunderl merged commit ce1c758 into master Jun 8, 2023
@jwunderl jwunderl deleted the fixSettingsInIFrame branch June 8, 2023 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Language and high contrast tools menu options broken in iframe controller mode for beta editor

2 participants