File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -181,9 +181,9 @@ function playground_text(playground) {
181
181
body : JSON . stringify ( params )
182
182
} )
183
183
. then ( response => response . json ( ) )
184
- . then ( ( { wasm_js, wasm_bg, error } ) => {
185
- if ( error ) {
186
- throw new Error ( error ) ;
184
+ . then ( ( { wasm_js, wasm_bg, success , stderr } ) => {
185
+ if ( ! success ) {
186
+ throw new Error ( stderr ) ;
187
187
}
188
188
189
189
return {
@@ -238,11 +238,13 @@ function playground_text(playground) {
238
238
239
239
function createIFrame ( src ) {
240
240
var iframe = document . createElement ( 'iframe' ) ;
241
+ iframe . scrolling = 'no' ;
241
242
iframe . style . height = "100%" ;
242
243
iframe . style . width = "100%" ;
243
244
iframe . style . padding = 0 ;
244
245
iframe . style . margin = 0 ;
245
246
iframe . style . border = 0 ;
247
+ iframe . style . overflow = "hidden" ;
246
248
iframe . src = createObjectURL ( src , "text/html" ) ;
247
249
return iframe
248
250
}
You can’t perform that action at this time.
0 commit comments