()
| 368 | } |
| 369 | |
| 370 | function initStartTarget() { |
| 371 | var id; |
| 372 | if (TogetherJS.startup.button) { |
| 373 | id = TogetherJS.startup.button.id; |
| 374 | if (id) { |
| 375 | storage.set("startTarget", id); |
| 376 | } |
| 377 | return; |
| 378 | } |
| 379 | storage.get("startTarget").then(function (id) { |
| 380 | var el = document.getElementById(id); |
| 381 | if (el) { |
| 382 | TogetherJS.startup.button = el; |
| 383 | } |
| 384 | }); |
| 385 | } |
| 386 | session.start = function () { |
| 387 | initStartTarget(); |
| 388 | initIdentityId().then(function () { |