Use device name instead of Web Browser
Summary: Unity is using this, and I noticed it was showing up as Web Browser which is a bit misleading. Differential Revision: D21067698 fbshipit-source-id: 93d6a598824e61490e0eadd1b2c9fb3ebc12d01c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1ce8a41556
commit
2d68006e3f
@@ -170,9 +170,11 @@ class Server extends EventEmitter {
|
||||
const query = querystring.decode(message.url.split('?')[1]);
|
||||
const deviceId: string =
|
||||
typeof query.deviceId === 'string' ? query.deviceId : 'webbrowser';
|
||||
const device =
|
||||
typeof query.device === 'string' ? query.device : 'WebSocket';
|
||||
this.store.dispatch({
|
||||
type: 'REGISTER_DEVICE',
|
||||
payload: new JSDevice(deviceId, 'Web Browser', 1),
|
||||
payload: new JSDevice(deviceId, device, 1),
|
||||
});
|
||||
|
||||
const cleanup = () => {
|
||||
|
||||
Reference in New Issue
Block a user