MCPcopy
hub / github.com/jsfiddle/togetherjs / initStartTarget

Function initStartTarget

togetherjs/session.js:370–385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 () {

Callers 1

session.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected