diff --git a/components/app/Header.vue b/components/app/Header.vue
index e0fb80be8..af6b9b4df 100644
--- a/components/app/Header.vue
+++ b/components/app/Header.vue
@@ -212,34 +212,34 @@ export default {
})
}
- // let showAd = localStorage.getItem("showAd") === "no"
- // if (!showAd) {
- // setTimeout(() => {
- // this.$toast.clear()
- // this.$toast.show(
- // "Sponsor us to support Hoppscotch open source project 💖
Whoosh this away to dismiss.",
- // {
- // icon: "",
- // duration: 0,
- // theme: "toasted-ad",
- // action: [
- // {
- // text: "Sponsor",
- // icon: "chevron_right",
- // onClick: (_, toastObject) => {
- // localStorage.setItem("showAd", "no")
- // toastObject.goAway(0)
- // window.open("https://github.com/sponsors/hoppscotch")
- // },
- // },
- // ],
- // onComplete() {
- // localStorage.setItem("showAd", "no")
- // },
- // }
- // )
- // }, 8000)
- // }
+ const showAd = localStorage.getItem("showAd") === "no"
+ if (!showAd) {
+ setTimeout(() => {
+ this.$toast.clear()
+ this.$toast.show(
+ "Sponsor us to support Hoppscotch open source project 💖
Whoosh this away to dismiss.",
+ {
+ icon: "",
+ duration: 0,
+ theme: "toasted-ad",
+ action: [
+ {
+ text: "Donate",
+ icon: "chevron_right",
+ onClick: (_, toastObject) => {
+ localStorage.setItem("showAd", "no")
+ toastObject.goAway(0)
+ window.open("https://fundoss.org/collective/hoppscotch")
+ },
+ },
+ ],
+ onComplete() {
+ localStorage.setItem("showAd", "no")
+ },
+ }
+ )
+ }, 6000)
+ }
// let showExtensionsToast = localStorage.getItem("showExtensionsToast") === "yes"
// if (!showExtensionsToast) {