mirror of
https://github.com/exoticorn/microw8.git
synced 2026-01-20 19:26:43 +01:00
start implementing run --browser
This commit is contained in:
10
web/src/run-web.js
Normal file
10
web/src/run-web.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import MicroW8 from './microw8.js';
|
||||
|
||||
let uw8 = MicroW8(document.getElementById('screen'));
|
||||
let events = new EventSource('events');
|
||||
events.onmessage = event => {
|
||||
console.log(event.data);
|
||||
if(event.data == 'L') {
|
||||
uw8.runModuleFromURL('cart');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user