Skip to content

Commit

Permalink
new comments contract; delete browser storage in desktop navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Oct 9, 2024
1 parent f8efee4 commit ecce11c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions components/navbars/NavbarDesktop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<span class="dropdown-item cursor-pointer" data-bs-toggle="modal" data-bs-target="#changeUsernameModal">Change username</span>
<span class="dropdown-item cursor-pointer" data-bs-toggle="modal" data-bs-target="#findUserModal">Find user</span>
<span class="dropdown-item cursor-pointer" data-bs-toggle="modal" data-bs-target="#referralModal">Share referral link</span>
<span class="dropdown-item cursor-pointer" @click="deleteBrowserStorage">Delete browser storage</span>
<span class="dropdown-item cursor-pointer" @click="disconnectWallet">Disconnect</span>
</div>
</li>
Expand Down Expand Up @@ -105,6 +106,12 @@ export default {
document.documentElement.setAttribute('data-bs-theme', this.siteStore.getColorMode)
},
deleteBrowserStorage() {
window.localStorage.clear()
window.sessionStorage.clear()
window.location.reload()
},
async disconnectWallet() {
this.disconnect()
},
Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default defineNuxtConfig({
general: '0x964b1D30E5750635742dbC02721CB3e5D54df073', // general discussion channel
memesImages: '0x964b1D30E5750635742dbC02721CB3e5D54df073',
shill: '0x964b1D30E5750635742dbC02721CB3e5D54df073',
nftLaunchpad: '0xAf6BeC6B2D21A9C6b36Ed67aFD79dBc523646CB6', // comments context
nftLaunchpad: '0xbE86F219609B1b410dbeAc30391276dA71C6497f', // comments context
},
storage: 'arweave', // storage type: 'arweave' or 'ipfs'
},
Expand Down

0 comments on commit ecce11c

Please sign in to comment.