Reverting banner ad

This commit is contained in:
Liyas Thomas
2020-06-10 15:41:25 +05:30
parent df115bd7db
commit 5d1f54005f

View File

@@ -342,34 +342,34 @@ export default {
})
}
let showAd = localStorage.getItem("showAd") === "no"
if (!showAd) {
setTimeout(() => {
this.$toast.clear()
this.$toast.show(
"<span>Get <u><a href='https://gum.co/keky' target='_blank' rel='noopener'>De-Coding The Passion Project</a></u> book, expertly crafted by the creator of Postwoman. Whoosh this away to dismiss →</span>",
{
icon: "",
duration: 0,
theme: "toasted-ad",
action: [
{
text: "Get",
icon: "chevron_right",
onClick: (e, toastObject) => {
localStorage.setItem("showAd", "no")
toastObject.goAway(0)
window.open("https://gum.co/keky")
},
},
],
onComplete() {
localStorage.setItem("showAd", "no")
},
}
)
}, 11000)
}
// let showAd = localStorage.getItem("showAd") === "no"
// if (!showAd) {
// setTimeout(() => {
// this.$toast.clear()
// this.$toast.show(
// "<span>Get <u><a href='https://gum.co/keky' target='_blank' rel='noopener'>De-Coding The Passion Project</a></u> book, expertly crafted by the creator of Postwoman. Whoosh this away to dismiss →</span>",
// {
// icon: "",
// duration: 0,
// theme: "toasted-ad",
// action: [
// {
// text: "Get",
// icon: "chevron_right",
// onClick: (e, toastObject) => {
// localStorage.setItem("showAd", "no")
// toastObject.goAway(0)
// window.open("https://gum.co/keky")
// },
// },
// ],
// onComplete() {
// localStorage.setItem("showAd", "no")
// },
// }
// )
// }, 11000)
// }
let showExtensionsToast = localStorage.getItem("showExtensionsToast") === "yes"