-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
28 lines (24 loc) · 1.11 KB
/
index.js
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
// <!--# if expr="$request_uri = \/index.js" -->
// <!--# set value="false" var="isModuleLoad" -->
"use strict";
// <!--# else -->
// <!--# set value="true" var="isModuleLoad" -->
import { SmuttyApp } from "./SmuttyApp.mjs";
// <!--# endif -->
if (!self.requestAnimationFrame)
self.requestAnimationFrame = self.webkitRequestAnimationFrame || self.mozRequestAnimationFrame || self.msRequestAnimationFrame || self.oRequestAnimationFrame || self.setTimeout;
(function() {
// <!--# if expr="$isModuleLoad = false" -->
// <!--# include file="/modules/SmuttyConstants.mjs" -->
// <!--# include file="/modules/SmuttyInstaller.mjs" -->
// <!--# include file="/modules/SmuttyApp.mjs" -->
// <!--# include file="/modules/SmuttyFileUpload.mjs" -->
// <!--# include file="/modules/SmuttyInteractionHandler.mjs" -->
// <!--# include file="/modules/SmuttyRow.mjs" -->
// <!--# endif -->
function onDomContentLoaded() { SmuttyApp.init(); }
if (self.document.readyState === "loading")
self.document.addEventListener("DOMContentLoaded", onDomContentLoaded, { once: true, passive: true });
else
onDomContentLoaded();
})();