File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed
packages/perseus-editor/src/__stories__ Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -64,28 +64,6 @@ const PerseusFrameComponent = () => {
64
64
document . body . style . margin = "0" ;
65
65
document . body . style . padding = "0" ;
66
66
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
-
89
67
window . addEventListener ( "message" , handleMessage ) ;
90
68
91
69
// Tell the EditorPage that we're ready
@@ -103,7 +81,7 @@ const PerseusFrameComponent = () => {
103
81
return ;
104
82
}
105
83
106
- // Use webapp's multi-selector height calculation
84
+ // Calculate the height of the content
107
85
let lowest = 0 ;
108
86
[ "#content-container" , ".preview-measure" , "#measured" ] . forEach (
109
87
( selector ) => {
You can’t perform that action at this time.
0 commit comments