client: allow specifying client id via url options
This commit is contained in:
parent
4e6680f5a8
commit
6e6d5a69eb
3 changed files with 15 additions and 3 deletions
|
|
@ -32,7 +32,7 @@
|
|||
- allow copying tabs (to tab containers only)
|
||||
- shared clipboard accross all clients
|
||||
- prevent interaction with widgets when `shift` or `ctrl` is held
|
||||
- ensure @{} bindings are always updated upon edition
|
||||
- ensure @{} bindings are always updated upon edition
|
||||
|
||||
|
||||
- widget changes
|
||||
|
|
@ -101,6 +101,8 @@
|
|||
|
||||
- custom module
|
||||
- `settings.read(name)`: `name` is now the long name of command-line options (not a camelCased one)
|
||||
- `receive()`: optional last argument to pass extra options such as `clientId`
|
||||
- client id persist upon page refresh and can be set manually with the client url option `id`
|
||||
|
||||
|
||||
- launcher
|
||||
|
|
|
|||
|
|
@ -1,8 +1,16 @@
|
|||
var EventEmitter = require('../events/event-emitter'),
|
||||
uuid = require('nanoid/generate')('0123456789abcdefghijklmnopqrstuvwxyABCDEFGHIJKLMNOPQRSTUVWXYZ', 10),
|
||||
nanoid = require('nanoid/generate'), uuid,
|
||||
notifications,
|
||||
locales
|
||||
|
||||
var localUuid = ENV.id || sessionStorage.getItem('osc.uuid')
|
||||
if (localUuid) {
|
||||
uuid = localUuid
|
||||
} else {
|
||||
uuid = nanoid('0123456789abcdefghijklmnopqrstuvwxyABCDEFGHIJKLMNOPQRSTUVWXYZ', 10)
|
||||
sessionStorage.setItem('osc.uuid', uuid)
|
||||
}
|
||||
|
||||
setTimeout(()=>{
|
||||
notifications = require('../ui/notifications')
|
||||
locales = require('../locales')
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
var StackTrace = require('stacktrace-js'),
|
||||
ipc = require('./ipc')
|
||||
ipc
|
||||
|
||||
window.onerror = function(msg,url,row,col, error) {
|
||||
|
||||
if (!ipc) ipc = require('./ipc')
|
||||
|
||||
StackTrace.fromError(error).then((stackframes)=>{
|
||||
|
||||
var stringifiedStack = stackframes.filter((sf)=>{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue