Browse files

Fixed tabs and style.

  • Loading branch information...
1 parent 0268bc5 commit 977ec10ced29a3541a4973dc2b59910805695752 @amasad amasad committed Apr 29, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 dist/worker.js
View
8 dist/worker.js
@@ -2,11 +2,12 @@
self.console = {
log: function () {}
};
- importScripts('python.opt.js');
-
self.prompt = function () {
return 'Input not supported in demo';
- }
+ };
+
+ importScripts('python.opt.js');
+
Python.initialize(null, function(chr) {
if (chr !== null)
postMessage(String.fromCharCode(chr));
@@ -18,7 +19,6 @@
if (result !== null && result !== undefined) {
postMessage('\n--------------------------\nResult: ' + result);
}
-
} else {
postMessage('\nCommand not finished.\n');
}

0 comments on commit 977ec10

Please sign in to comment.