Skip to content

Commit

Permalink
Removed ad erro message + fixed bug with Twitter user handles
Browse files Browse the repository at this point in the history
  • Loading branch information
elrumo committed Sep 16, 2021
1 parent fc5499f commit 8f1e3bd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export default {
// position: "Bottom Sticky Banner"
// }})
// }
}
}
</script>
Expand Down
8 changes: 2 additions & 6 deletions website/macos-big-sur-icons/src/store/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default new Vuex.Store({
},

setData(store, data){
console.log("data.state: ", data);
// console.log("data.state: ", data);
if (data.key) {
store.commit('setDataToArr', {arr: data.state, key: data.key, data: data.data})
} else{
Expand Down Expand Up @@ -552,15 +552,11 @@ export default new Vuex.Store({
},

adClick(store, data){
let parent = this
console.log("data: ", data);
window.plausible("adClick", {props: {
path: globalThis.router.currentRoute.name,
position: data.adPosition,
type: data.adType
}}).then((res) =>{
console.log("res: ", res);
})
}})
},

async fetchAppCategories(store) {
Expand Down
7 changes: 6 additions & 1 deletion website/macos-big-sur-icons/src/views/UserProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,12 @@ export default {
})
let twitterHandle = userInfo.get("twitterHandle") // Check if twitterHandle is a URL or not
if (twitterHandle) user.twitterHandle = twitterHandle
if (twitterHandle) {
user.twitterHandle = twitterHandle
if (!twitterHandle.includes("twitter.com")) user.twitterHandle = "https://twitter.com/"+twitterHandle
}
user.credit = userInfo.get("credit")
user.username = userInfo.get("username")
user.bio = userInfo.get("bio")
Expand Down

1 comment on commit 8f1e3bd

@vercel
Copy link

@vercel vercel bot commented on 8f1e3bd Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.