mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-11 16:26:20 +00:00
* Update dependency typescript to v3.3.1 * Fix trailing commas for function calls * Reverting trailing comma change * Avoiding trailing comma rule for imports * I never know what the right thing to do is * lockfile
25 lines
643 B
TypeScript
25 lines
643 B
TypeScript
declare module '@webcomponents/custom-elements';
|
|
|
|
function init() {
|
|
require('./init-app.tsx');
|
|
}
|
|
|
|
if (!('customElements' in self)) {
|
|
import(
|
|
/* webpackChunkName: "wc-polyfill" */
|
|
'@webcomponents/custom-elements').then(init);
|
|
} else {
|
|
init();
|
|
}
|
|
|
|
if (typeof PRERENDER === 'undefined') {
|
|
window.ga = window.ga || ((...args) => (ga.q = ga.q || []).push(args));
|
|
ga('create', 'UA-128752250-1', 'auto');
|
|
ga('set', 'transport', 'beacon');
|
|
ga('send', 'pageview');
|
|
// Load the GA script
|
|
const s = document.createElement('script');
|
|
s.src = 'https://www.google-analytics.com/analytics.js';
|
|
document.head!.appendChild(s);
|
|
}
|