Skip to content

Commit

Permalink
button redirect to get ogtags from discovered url
Browse files Browse the repository at this point in the history
function to redirect to OG tags
  • Loading branch information
Matheus Cesar authored May 21, 2020
1 parent 7d8b7d1 commit 4495b86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public/face-cleaner/cleanfb.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ let app = new Vue({
return url;
}
},
toOgTags: function(){
window.location.href = `/ogtags?url=${encodeURIComponent(app.dataOut)}`
},
clearURL: async function(url){
fetch(`/apis/cleanfb?u=${url}`, {
method: 'GET'
Expand All @@ -68,4 +71,4 @@ let app = new Vue({
})
}
}
});
});

0 comments on commit 4495b86

Please sign in to comment.