Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: GalaxyPay/lute-connect
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 360d4c9c9c3b8e5c4873c19bb71fea739a2bef5e
Choose a base ref
...
head repository: GalaxyPay/lute-connect
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cbae7413047757cebc9eb978417633127fb4011b
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Apr 23, 2024

  1. debug messages

    acfunk committed Apr 23, 2024
    Copy the full SHA
    cbae741 View commit details
Showing with 3 additions and 10 deletions.
  1. +1 −1 package.json
  2. +2 −9 src/main.ts
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lute-connect",
"version": "1.1.4",
"version": "1.2.0",
"main": "./dist/main.cjs.js",
"module": "./dist/main.esm.js",
"types": "./dist/main.d.ts",
11 changes: 2 additions & 9 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -65,6 +65,7 @@ export default class LuteConnect {
window.addEventListener("message", messageHandler);
function messageHandler(event: any) {
if (event.origin !== BASE_URL) return;
if (event.data.debug) console.log("[Lute Debug]", event.data);
switch (event.data.action) {
case "ready": {
const message = {
@@ -114,6 +115,7 @@ export default class LuteConnect {
window.addEventListener("message", messageHandler);
function messageHandler(event: any) {
if (event.origin !== BASE_URL) return;
if (event.data.debug) console.log("[Lute Debug]", event.data);
switch (event.data.action) {
case "ready": {
const message = {
@@ -129,15 +131,6 @@ export default class LuteConnect {
resolve(event.data.txns);
break;
}
case "msig": {
win?.close();
window.removeEventListener("message", messageHandler);
reject({
code: 4100,
message: "Not Signed, Sent to Multi-Sig",
});
break;
}
case "error": {
win?.close();
window.removeEventListener("message", messageHandler);