diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-11-13 04:19:36 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-11-13 04:19:36 +0900 |
| commit | 78b9bef0a4485e4ff75995f943cb198402211f11 (patch) | |
| tree | 69d1701b08852beea108c04b3aae3c4d69b87634 /src/web/app/common/scripts | |
| parent | Add note (diff) | |
| download | sharkey-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.ts | 2 | ||||
| -rw-r--r-- | src/web/app/common/scripts/uuid.js | 18 |
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; -}; |