forked from sugardave/enyo-headless-chrome-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·31 lines (27 loc) · 882 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!doctype html>
<html>
<head>
<title>Headless Skeleton</title>
<script src="../../../../../Enyo/enyo/0.10/framework/enyo.js" type="text/javascript"></script>
</head>
<body>
<!--<div id="messenger" class="messenger"></div>-->
<script type="text/javascript">
(function () {
var unloadFunc = function(){
// headless window unloaded
window.removeEventListener('unload', unloadFunc);
};
window.addEventListener('unload', unloadFunc);
var app = enyo.application.App = new App();
enyo.applicationRelaunchHandler = function (params) {
// do something to determine what to do when parameters change because of a relaunch
app.relaunch();
};
// rename the window for the WindowManager
enyo.windows.renameWindow(window, "startup");
app.startup();
})();
</script>
</body>
</html>