Skip to content

Commit

Permalink
updated iframe url to be readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
srietkerk committed Jan 17, 2024
1 parent 00c1c8f commit 29b9766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teachertool/src/components/MakecodeFrame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const MakeCodeFrame: React.FC<MakeCodeFrameProps> = () => {
if (editorUrl.charAt(editorUrl.length - 1) === "/" && !pxt.BrowserUtils.isLocalHost()) {
url = editorUrl.substr(0, editorUrl.length - 1);
}
url += `?controller=1&ws=browser&nocookiebanner=1#pub:${shareId}`;
url += `#pub:${shareId}?controller=1&teachertool=1&readonly=1&ws=browser&nocookiebanner=1`;
return url;
}

Expand Down

0 comments on commit 29b9766

Please sign in to comment.