@archbee/app-widget 1.1.22 → 1.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -239,7 +239,7 @@ const $d0b8a7ae25f50023$export$a65e3ebe24ca6cb5 = ({ spaceId: spaceId, docId: do
|
|
|
239
239
|
});
|
|
240
240
|
};
|
|
241
241
|
const $d0b8a7ae25f50023$var$getIframeUrl = (spaceId, docId, blockId, jwt, shareableToken, screen)=>{
|
|
242
|
-
let iframeUrl = `${"
|
|
242
|
+
let iframeUrl = `${"https://app.archbee.com/public"}/${spaceId}`;
|
|
243
243
|
if (docId) iframeUrl = iframeUrl + `/${docId}`;
|
|
244
244
|
const template = "?template=widget";
|
|
245
245
|
iframeUrl += template;
|
|
@@ -438,13 +438,13 @@ const $ef43c9dfc50ce6f2$export$b66f8e2563088683 = ()=>{
|
|
|
438
438
|
const widgetcsslink = document.createElement("link");
|
|
439
439
|
const link = document.getElementsByTagName("link")[0];
|
|
440
440
|
widgetcsslink["rel"] = "stylesheet";
|
|
441
|
-
widgetcsslink["href"] = `${"
|
|
441
|
+
widgetcsslink["href"] = `${"https://widget.archbee.com/v1"}/index.css`;
|
|
442
442
|
if (!link) document.getElementsByTagName("head")[0].append(widgetcsslink);
|
|
443
443
|
link === null || link === void 0 ? void 0 : (_link_parentNode = link.parentNode) === null || _link_parentNode === void 0 ? void 0 : _link_parentNode.appendChild(widgetcsslink);
|
|
444
444
|
};
|
|
445
445
|
const $ef43c9dfc50ce6f2$export$daaeb3f1095d12b8 = (loadingStrategy)=>{
|
|
446
446
|
var _script_parentNode;
|
|
447
|
-
const mainUrl = "
|
|
447
|
+
const mainUrl = "https://widget.archbee.com/v1";
|
|
448
448
|
let scripttag = document.createElement("script");
|
|
449
449
|
scripttag["async"] = loadingStrategy === "lazy";
|
|
450
450
|
scripttag["src"] = `${mainUrl}/index.js`;
|