Created
June 25, 2020 10:13
-
-
Save iaindooley/e60163ac45b0fceb78313cb926461644 to your computer and use it in GitHub Desktop.
Remove images
This file contains 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
function removeImages(notification) | |
{ | |
var moved = new Notification(notification).movedCard("Terminado y Cumplido"); | |
moved.attachments().each(function(att) | |
{ | |
if(/.*\.(jpg|png)/i.test(att.name())) | |
{ | |
att.remove(); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment