Skip to content

Commit d4743ff

Browse files
authored
Remove protocol prefix so IFTTT doesn't replace link.
1 parent 2607671 commit d4743ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const postIFTTT = (data) => {
103103
if (!ifttt.timers[data] || now - ifttt.timers[data] > timeout) {
104104
const postData = {};
105105

106-
postData[ifttt.bodyKey] = data;
106+
postData[ifttt.bodyKey] = data.replace(/http(s)?:\/\//, '');
107107
ifttt.timers[data] = now;
108108

109109
request.post({

0 commit comments

Comments
 (0)