Skip to content

Commit

Permalink
fixed a type issue at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew committed May 5, 2023
1 parent 405d2fa commit 6e2237c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/editing/codemirror_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const codeMirrorOptions = {
'autoCloseTags': {
'whenOpening': true,
'whenClosing': true,
'indentTags':
<String>[], // Android Studio/VSCode do not auto indent/add newlines for any completed tags
// The default (below) would be the following tags cause indenting and blank line inserted
'indentTags': <String>[],
// Android Studio/VSCode do not auto indent/add newlines for any completed tags
// The default (below) would be the following tags cause indenting and blank line inserted
// ['applet', 'blockquote', 'body', 'button', 'div', 'dl', 'fieldset',
// 'form', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head',
// 'html', 'iframe', 'layer', 'legend', 'object', 'ol', 'p', 'select', \
Expand Down
2 changes: 1 addition & 1 deletion lib/services/execution_iframe.dart
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ require(["dartpad_main", "dart_sdk"], function(dartpad_main, dart_sdk) {
void _initListener() {
window.addEventListener('message', (event) {
if (event is MessageEvent) {
final data = event.data as Map<String, dynamic>;
final data = (event.data as Map).cast<String, dynamic>();
if (data['sender'] != 'frame') {
return;
}
Expand Down

0 comments on commit 6e2237c

Please sign in to comment.