usebeeline 0.1.31 → 0.1.33
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/dist/usebeeline.mjs +5 -2
- package/package.json +1 -1
package/dist/usebeeline.mjs
CHANGED
|
@@ -36061,8 +36061,11 @@ async function shareChromiumPage(input) {
|
|
|
36061
36061
|
if (message.method === "Page.frameNavigated" && message.params?.frame?.url) {
|
|
36062
36062
|
try {
|
|
36063
36063
|
const url = new URL(message.params.frame.url);
|
|
36064
|
-
if (
|
|
36065
|
-
|
|
36064
|
+
if (["http:", "https:"].includes(url.protocol) && relay.readyState === import_websocket.default.OPEN) {
|
|
36065
|
+
url.username = "";
|
|
36066
|
+
url.password = "";
|
|
36067
|
+
relay.send(JSON.stringify({ type: "share-event", name: "navigation", detail: url.href }));
|
|
36068
|
+
}
|
|
36066
36069
|
} catch {
|
|
36067
36070
|
}
|
|
36068
36071
|
return;
|