Skip to content

Commit

Permalink
hardcoded changes for support of xsjs
Browse files Browse the repository at this point in the history
  • Loading branch information
delchev committed Apr 1, 2019
1 parent f2e966d commit 137f566
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ide/ui/ide-orion/src/main/resources/ide-orion/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
return 'application/json';
} else if (fileName.endsWith('.command')) {
return 'application/json';
} else if (fileName.endsWith('.xsjs')) {
return 'application/javascript';
}
return 'plain/text';
}
Expand Down
3 changes: 3 additions & 0 deletions ide/ui/ide-preview/src/main/resources/ide-preview/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ angular.module('preview', [])
case 'js':
url += '/js';
break;
case 'xsjs':
url += '/xsc';
break;
case 'md':
url += '/wiki';
break;
Expand Down

0 comments on commit 137f566

Please sign in to comment.