Skip to content

Commit

Permalink
调整代码格式
Browse files Browse the repository at this point in the history
  • Loading branch information
fengweiqiang-coder committed Apr 6, 2021
1 parent bdf9a5e commit 6a6da33
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ function createBrowserView (url, isClose) {

view.webContents.on('did-finish-load', (event, input) => {
mainWindow.webContents.send('loading-status', false)
view.setBackgroundColor("white")
view.setBackgroundColor('white')
})

view.webContents.on('render-process-gone', (event, details) => {
Expand Down
14 changes: 7 additions & 7 deletions src/renderer/views/dapp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -364,15 +364,15 @@ export default {
this.DAppUrl = item.value
},
selectChangeChainType (value) {
this.DAppUrl=this.state
this.DAppUrl = this.state
this.getDApps(value)
this.serchOpenUrl(this.DAppUrl)
},
selectCloseBrowserView(){
selectCloseBrowserView () {
ipcRenderer.send('openBrowserView', 'url', true)
},
handleClick (tab) {
this.state=''
this.state = ''
this.changeChain(tab.label)
this.getDApps(tab.label)
},
Expand Down Expand Up @@ -439,7 +439,7 @@ export default {
this.status = 1
},
openUrl (urlType, url, title, iconUrl) {
this.state=url
this.state = url
if (urlType === 'PolkadotJS') {
// 判断是否有dot地址没有提示下载应用
let addressKSM
Expand Down Expand Up @@ -492,9 +492,9 @@ export default {
this.changeStyle('none', '.el-autocomplete-suggestion')
if (url !== '') {
if(url.indexOf('https://') === -1){
url = "https://"+url
this.state=url
if (url.indexOf('https://') === -1) {
url = 'https://' + url
this.state = url
}
this.isLoading = true
ipcRenderer.send('openBrowserView', url, false)
Expand Down

0 comments on commit 6a6da33

Please sign in to comment.