diff --git a/malen.js b/malen.js index 0f6e851..7899f1f 100644 --- a/malen.js +++ b/malen.js @@ -1,18 +1 @@ -let helloWorldPopup; - -// Open the popup when we enter a given zone -helloWorldPopup = WA.onEnterZone('malen-1', () => { - WA.openPopup("popupRectangle", 'Hello world!', [{ - label: "Close", - className: "primary", - callback: (popup) => { - // Close the popup when the "Close" button is pressed. - popup.close(); - } - }); -}]); - -// Close the popup when we leave the zone. -WA.onLeaveZone('malen-1', () => { - helloWorldPopup.close(); -}); +WA.sendChatMessage('Hello world', 'Mr Robot'); diff --git a/quer.json b/quer.json index 79c1cf0..f3064b0 100644 --- a/quer.json +++ b/quer.json @@ -52,7 +52,7 @@ "offsety":-384, "opacity":1, "type":"imagelayer", - "visible":true, + "visible":false, "x":0, "y":0 }, @@ -300,7 +300,7 @@ "properties":[ { "name":"script", - "type":"file", + "type":"string", "value":"malen.js" }], "renderorder":"right-down",