diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2020-05-22 21:21:04 -0700 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-05-22 21:21:04 -0700 |
commit | b458b4ef1be93161cf2bda250be109fd6a0a5ffe (patch) | |
tree | c8018ee6dc7c5503354dee19ff1f11ee0110be87 /src/mobile/ImageUpload.tsx | |
parent | 8f59d3d65b04682ce5711ed95867a8f0c739457a (diff) |
port extensibility fixes
Diffstat (limited to 'src/mobile/ImageUpload.tsx')
-rw-r--r-- | src/mobile/ImageUpload.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mobile/ImageUpload.tsx b/src/mobile/ImageUpload.tsx index 231870531..3007fb02f 100644 --- a/src/mobile/ImageUpload.tsx +++ b/src/mobile/ImageUpload.tsx @@ -13,6 +13,7 @@ import { observable } from 'mobx'; import { Utils } from '../Utils'; import MobileInterface from './MobileInterface'; import { CurrentUserUtils } from '../client/util/CurrentUserUtils'; +import { resolvedPorts } from '../server/server_Initialization'; @@ -106,10 +107,10 @@ class Uploader extends React.Component { } -// DocServer.init(window.location.protocol, window.location.hostname, 4321, "image upload"); +// DocServer.init(window.location.protocol, window.location.hostname, resolvedPorts.socket, "image upload"); (async () => { const info = await CurrentUserUtils.loadCurrentUser(); - DocServer.init(window.location.protocol, window.location.hostname, 4321, info.email + "mobile"); + DocServer.init(window.location.protocol, window.location.hostname, resolvedPorts.socket, info.email + "mobile"); await Docs.Prototypes.initialize(); if (info.id !== "__guest__") { // a guest will not have an id registered |