microboard-ui-temp 0.3.0 → 0.3.2

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.
@@ -184,8 +184,7 @@ async function handleShare(ev) {
184
184
  ev.preventDefault();
185
185
  const html = document.documentElement.outerHTML;
186
186
  const name = getBoardName();
187
- const appOrigin = window.location.origin;
188
- const importWindow = window.open(`${appOrigin}/import-snapshot`, "_blank");
187
+ const importWindow = window.open("https://app.microboard.io/boards/blank", "_blank");
189
188
  if (!importWindow)
190
189
  return;
191
190
  await new Promise((resolve, reject) => {
@@ -199,7 +198,7 @@ async function handleShare(ev) {
199
198
  if (event.data?.type === "microboard-snapshot-ready") {
200
199
  window.removeEventListener("message", onMessage);
201
200
  clearTimeout(timeout);
202
- importWindow.postMessage({ type: "microboard-snapshot", html, name }, appOrigin);
201
+ importWindow.postMessage({ type: "microboard-snapshot", html, name }, "https://app.microboard.io");
203
202
  resolve();
204
203
  }
205
204
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-ui-temp",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",