chore: update build
This commit is contained in:
Vendored
+3
-3
@@ -2,7 +2,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name WhatsApp Web Bridge
|
// @name WhatsApp Web Bridge
|
||||||
// @namespace https://rul.sh/
|
// @namespace https://rul.sh/
|
||||||
// @version 0.0.1
|
// @version 0.0.2
|
||||||
// @description WhatsApp Web WebSocket bridge
|
// @description WhatsApp Web WebSocket bridge
|
||||||
// @match https://web.whatsapp.com/*
|
// @match https://web.whatsapp.com/*
|
||||||
// @updateURL https://git.rul.sh/khairul169/whatsapp-bridge/raw/branch/main/dist/whatsapp-bridge.user.js
|
// @updateURL https://git.rul.sh/khairul169/whatsapp-bridge/raw/branch/main/dist/whatsapp-bridge.user.js
|
||||||
@@ -199,7 +199,7 @@
|
|||||||
from: serializeId(message.from),
|
from: serializeId(message.from),
|
||||||
to: serializeId(message.to),
|
to: serializeId(message.to),
|
||||||
author: serializeId(message.author),
|
author: serializeId(message.author),
|
||||||
fromMe: message.fromMe ?? false,
|
fromMe: message.id?.fromMe ?? message.fromMe ?? false,
|
||||||
body: message.body ?? null,
|
body: message.body ?? null,
|
||||||
caption: message.caption ?? null,
|
caption: message.caption ?? null,
|
||||||
type: message.type ?? null,
|
type: message.type ?? null,
|
||||||
@@ -228,7 +228,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// src/userscript/index.ts
|
// src/userscript/index.ts
|
||||||
var WS_URL = "wss://wa-bridge.rul.sh/ws";
|
var WS_URL = "wss://wa-bridge.rul.sh/ws?bridge=1";
|
||||||
var socket;
|
var socket;
|
||||||
function send(message) {
|
function send(message) {
|
||||||
if (socket?.readyState !== WebSocket.OPEN) {
|
if (socket?.readyState !== WebSocket.OPEN) {
|
||||||
|
|||||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -14,7 +14,7 @@ await esbuild.build({
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name WhatsApp Web Bridge
|
// @name WhatsApp Web Bridge
|
||||||
// @namespace https://rul.sh/
|
// @namespace https://rul.sh/
|
||||||
// @version 0.0.1
|
// @version 0.0.2
|
||||||
// @description WhatsApp Web WebSocket bridge
|
// @description WhatsApp Web WebSocket bridge
|
||||||
// @match https://web.whatsapp.com/*
|
// @match https://web.whatsapp.com/*
|
||||||
// @updateURL https://git.rul.sh/khairul169/whatsapp-bridge/raw/branch/main/dist/whatsapp-bridge.user.js
|
// @updateURL https://git.rul.sh/khairul169/whatsapp-bridge/raw/branch/main/dist/whatsapp-bridge.user.js
|
||||||
|
|||||||
Reference in New Issue
Block a user