Skip to content

Commit 99d851f

Browse files
[neverending-story-2] cleanup as these aren't needed
1 parent 725b4c1 commit 99d851f

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

packages/perseus-editor/src/__stories__/perseus-frame-component.tsx

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -64,28 +64,6 @@ const PerseusFrameComponent = () => {
6464
document.body.style.margin = "0";
6565
document.body.style.padding = "0";
6666

67-
// Setup Perseus globals (matches webapp exactly)
68-
// @ts-expect-error - TS2339 - Property 'KhanUtil' does not exist on type 'Window & typeof globalThis'.
69-
window.KhanUtil = {
70-
localeToFixed: function (num: number, precision: number) {
71-
return num.toFixed(precision);
72-
},
73-
};
74-
75-
// @ts-expect-error - TS2339 - Property 'Exercises' does not exist on type 'Window & typeof globalThis'.
76-
window.Exercises = {
77-
localMode: true,
78-
khanExercisesUrlBase: "../",
79-
getCurrentFramework: function () {
80-
return "khan-exercises";
81-
},
82-
PerseusBridge: {
83-
cleanupProblem: function () {
84-
return false;
85-
},
86-
},
87-
};
88-
8967
window.addEventListener("message", handleMessage);
9068

9169
// Tell the EditorPage that we're ready
@@ -103,7 +81,7 @@ const PerseusFrameComponent = () => {
10381
return;
10482
}
10583

106-
// Use webapp's multi-selector height calculation
84+
// Calculate the height of the content
10785
let lowest = 0;
10886
["#content-container", ".preview-measure", "#measured"].forEach(
10987
(selector) => {

0 commit comments

Comments
 (0)