major wip
This commit is contained in:
10
www/common/sframe-boot.js
Normal file
10
www/common/sframe-boot.js
Normal file
@@ -0,0 +1,10 @@
|
||||
// Stage 0, this gets cached which means we can't change it. boot2-sframe.js is changable.
|
||||
// Note that this file is meant to be executed only inside of a sandbox iframe.
|
||||
window.addEventListener('message', function (msg) {
|
||||
var data = msg.data;
|
||||
if (data.q !== 'INIT') { return; }
|
||||
msg.source.postMessage({ txid: data.txid, res: 'OK' }, '*');
|
||||
if (data.requireConf) { require.config(data.requireConf); }
|
||||
require(['/common/sframe-boot2.js'], function () { });
|
||||
});
|
||||
console.log('boot');
|
||||
Reference in New Issue
Block a user