summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-11-13 04:19:36 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-11-13 04:19:36 +0900
commit78b9bef0a4485e4ff75995f943cb198402211f11 (patch)
tree69d1701b08852beea108c04b3aae3c4d69b87634 /src/web/app/common/scripts
parentAdd note (diff)
downloadsharkey-78b9bef0a4485e4ff75995f943cb198402211f11.tar.gz
sharkey-78b9bef0a4485e4ff75995f943cb198402211f11.tar.bz2
sharkey-78b9bef0a4485e4ff75995f943cb198402211f11.zip
Clean up
Diffstat (limited to 'src/web/app/common/scripts')
-rw-r--r--src/web/app/common/scripts/server-stream-manager.ts2
-rw-r--r--src/web/app/common/scripts/uuid.js18
2 files changed, 1 insertions, 19 deletions
diff --git a/src/web/app/common/scripts/server-stream-manager.ts b/src/web/app/common/scripts/server-stream-manager.ts
index e3f03ae40b..54333c8cf5 100644
--- a/src/web/app/common/scripts/server-stream-manager.ts
+++ b/src/web/app/common/scripts/server-stream-manager.ts
@@ -1,5 +1,5 @@
import Connection from './server-stream';
-import uuid from './uuid';
+import * as uuid from 'uuid';
export default class ServerStreamManager {
private connection = null;
diff --git a/src/web/app/common/scripts/uuid.js b/src/web/app/common/scripts/uuid.js
deleted file mode 100644
index ff016e18ad..0000000000
--- a/src/web/app/common/scripts/uuid.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Generate a UUID
- */
-export default () => {
- let uuid = '';
-
- for (let i = 0; i < 32; i++) {
- const random = Math.random() * 16 | 0;
-
- if (i == 8 || i == 12 || i == 16 || i == 20) {
- uuid += '-';
- }
-
- uuid += (i == 12 ? 4 : (i == 16 ? (random & 3 | 8) : random)).toString(16);
- }
-
- return uuid;
-};