Move toju-app into own its folder
This commit is contained in:
72
toju-app/src/index.html
Normal file
72
toju-app/src/index.html
Normal file
@@ -0,0 +1,72 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>MeToYou</title>
|
||||
<base href="/" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1"
|
||||
/>
|
||||
<meta
|
||||
http-equiv="Content-Security-Policy"
|
||||
content="default-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; connect-src 'self' blob: ws: wss: http: https:; media-src 'self' blob:; img-src 'self' data: blob: http: https:;"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/x-icon"
|
||||
href="favicon.ico"
|
||||
/>
|
||||
<script>
|
||||
// Polyfills for Node.js modules used in browser
|
||||
if (typeof global === 'undefined') {
|
||||
window.global = window;
|
||||
}
|
||||
if (typeof process === 'undefined') {
|
||||
window.process = { env: {}, browser: true, version: '', versions: {} };
|
||||
}
|
||||
// Add nextTick polyfill for simple-peer/streams
|
||||
if (typeof process.nextTick === 'undefined') {
|
||||
window.process.nextTick = function (fn) {
|
||||
setTimeout(fn, 0);
|
||||
};
|
||||
}
|
||||
if (typeof Buffer === 'undefined') {
|
||||
window.Buffer = {
|
||||
isBuffer: function () {
|
||||
return false;
|
||||
},
|
||||
from: function () {
|
||||
return [];
|
||||
},
|
||||
alloc: function () {
|
||||
return [];
|
||||
}
|
||||
};
|
||||
}
|
||||
// Polyfill for util module (used by simple-peer/debug)
|
||||
if (typeof window.util === 'undefined') {
|
||||
window.util = {
|
||||
debuglog: function () {
|
||||
return function () {};
|
||||
},
|
||||
inspect: function (obj) {
|
||||
return JSON.stringify(obj);
|
||||
},
|
||||
format: function () {
|
||||
return Array.prototype.slice.call(arguments).join(' ');
|
||||
},
|
||||
inherits: function (ctor, superCtor) {
|
||||
ctor.super_ = superCtor;
|
||||
ctor.prototype = Object.create(superCtor.prototype, {
|
||||
constructor: { value: ctor, enumerable: false, writable: true, configurable: true }
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user