This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This little script fetches a json array from outlook with integromat and php | |
Json looks like this: | |
["08:00 - 17:00 All day event","09:00 - 09:15 agenda row 2","10:00 - 17:00 agenda row 3"] | |
Just type :agenda: and it will fetches the array and write the newlines. | |
*/ | |
document.addEventListener('input', function(e){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener('input', function(e){ | |
if ('_webhookHook' in window) { | |
setTimeout(function(){ window._webhookHook(e); }, 0); | |
} | |
}); | |
window._webhookHook = async function(e) { | |
// logging | |
window._e = e; |