bigbluebutton-html-plugin-sdk
Version:
This repository contains the SDK for developing BigBlueButton plugins. Plugins are React components that can be loaded from external sources by the BigBlueButton HTML5 client to extend its functionalities.
24 lines • 1.05 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSessionToken = void 0;
function getSessionToken() {
// BigBlueButton 3.0.30 (bigbluebutton/bigbluebutton#25219, "Hide sessionToken
// from URL bar") removes `sessionToken` from window.location during client
// startup and stores it in sessionStorage under the key `BBB_sessionToken`
// (ObservableStorage 'BBB_' prefix + 'sessionToken'). Plugins mount after that
// bootstrap, so reading only the URL returns undefined on 3.0.30+.
//
// Read the URL first (older cores, and the brief window before the strip),
// then fall back to sessionStorage so the token resolves on 3.0.30+ too.
var fromUrl = new URLSearchParams(window.location.search).get('sessionToken');
if (fromUrl)
return fromUrl;
try {
return window.sessionStorage.getItem('BBB_sessionToken') || undefined;
}
catch (_a) {
return undefined;
}
}
exports.getSessionToken = getSessionToken;
//# sourceMappingURL=getter.js.map