-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
30 lines (30 loc) · 806 Bytes
/
test.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Test Runner</title>
<script>
// configure settings, if localhost else prod
if (window.location.href.indexOf('localhost') !== -1) {
window.requireSettings = {
baseURL: '',
};
} else {
window.requireSettings = {
baseURL: '/twitchystream',
};
}
</script>
<script src="src/utils/simpleRequire.js"></script>
</head>
<body>
<div class="js-root"></div>
<script>
require(['/test/main.js'], function(main) {
main();
});
</script>
</body>
</html>