Skip to content

Commit

Permalink
#3 clean-up old console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
motorina0 committed May 31, 2021
1 parent 0499f99 commit 0625a00
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/background_script/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
chrome.runtime.onMessage.addListener(function (message, sender) {
console.log("background received ", message)
console.log("lnbits: background received ", message)
chrome.tabs.sendMessage(sender.tab.id, message);
});
2 changes: 0 additions & 2 deletions src/components/Bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,12 @@ export default {
name: 'Bar',
props: ['bolt11Invoice'],
data() {
console.log('############## bolt11Invoice', this.bolt11Invoice)
return {
showDialog: true,
}
},
methods: {
closeDialog() {
console.log('############################ closeDialog')
this.$browser.runtime.sendMessage('hide_iframe');
this.showDialog = true
},
Expand Down
1 change: 0 additions & 1 deletion src/components/LNbitsWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import browser from 'webextension-polyfill'
export default {
name: 'lnbits-wrapper',
async mounted() {
console.log('this.$route.query.', this.$route.query)
const userId = this.$route.query.userId || ''
const walletId = this.$route.query.walletId || ''
const result = await this.$browser.storage.sync.get({ serverUrl: '' })
Expand Down
1 change: 0 additions & 1 deletion src/components/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export default {
},
},
data() {
console.log('############## bolt11Invoice', this.bolt11Invoice)
return {
showDialog: true,
layout: false,
Expand Down
1 change: 0 additions & 1 deletion src/components/Loading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export default {
this.$q.loading.hide()
},
mounted: function () {
console.log('############################ mounted loading')
document.body.style.background = 'none'
this.$q.loading.show()
},
Expand Down
3 changes: 0 additions & 3 deletions src/components/PayInvoice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ export default {
return this.parse.invoice.sat <= this.balance
},
hasAccount: function () {
console.log('### activeWallet', this.activeWallet)
if (this.serverUrl && this.activeWallet && this.activeWallet.id) {
return true
}
Expand Down Expand Up @@ -366,8 +365,6 @@ export default {
this.$browser.runtime.sendMessage('hide_iframe')
},
showErrorCard(err, title = 'Error') {
console.log(err)
console.log('!!!!!!!!!! err, ', JSON.stringify(err))
this.currentView = 'error'
this.error.title = title
this.error.message = (err.message || err) + '.'
Expand Down
2 changes: 0 additions & 2 deletions src/content_script/linkClickHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ function handleLinkClick() {
if (!isBolt11Link && !isLnUrlLink) {
return
}
console.log("###### content_script > link.href", link.href)

if (!isInitialized) {
isInitialized = true;
Expand All @@ -45,7 +44,6 @@ function handleLinkClick() {


browser.runtime.onMessage.addListener(function (message) {
console.log("################# content script received:", message)
if (iframe && message == 'hide_iframe') {
iframe.style.display = 'none';
}
Expand Down
8 changes: 2 additions & 6 deletions src/utils/lnbits-scraper.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import $ from 'jquery'
async function checkUser(serverUrl, userId) {
try {
const res = await axios.get(`${serverUrl}/wallet?usr=${userId}`)
// handle 404 not found exception
console.log('res:', res)
console.log('res.request.responseURL', res.request.responseURL)
// TODO: handle 404 not found exception

const div = $(res.data)
const scripts = []
Expand All @@ -24,9 +22,7 @@ async function checkUser(serverUrl, userId) {
async function newUser(serverUrl) {
try {
const res = await axios.get(`${serverUrl}/wallet?nme=Browser%20wallet`)
// handle 404 not found exception
console.log('res:', res)

// TODO: handle 404 not found exception
const div = $(res.data)
const scripts = []
div.each(function () {
Expand Down
3 changes: 0 additions & 3 deletions src/views/popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ async function init() {
})
const user = result.user

console.log('serverUrl', serverUrl)
console.log('user', user)

if (serverUrl && user && user.id && user.wallets && user.wallets.length) {

router.replace({
Expand Down

0 comments on commit 0625a00

Please sign in to comment.