Skip to content

Commit

Permalink
Teacher tool: updated iframe url to be readonly (#9826)
Browse files Browse the repository at this point in the history
* updated iframe url to be readonly

* moved hash to the end of the url

* updated default game in debug, using mem workspace
  • Loading branch information
srietkerk authored Jan 22, 2024
1 parent 3751b5a commit b6ee0f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion teachertool/src/components/DebugInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { runEvaluateAsync } from "../transforms/runEvaluateAsync";
interface IProps {}

const DebugInput: React.FC<IProps> = ({}) => {
const [shareLink, setShareLink] = useState("https://arcade.makecode.com/S50644-45891-08403-36583");
const [shareLink, setShareLink] = useState("https://arcade.makecode.com/S70821-26848-68192-30094");
const [rubric, setRubric] = useState("");

const evaluate = async () => {
Expand Down
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 += `?controller=1&teachertool=1&readonly=1&ws=mem&nocookiebanner=1#pub:${shareId}`;
return url;
}

Expand Down

0 comments on commit b6ee0f6

Please sign in to comment.