Skip to content

Commit

Permalink
86dtf026h - Neon3 - Change app name
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoak25 committed May 7, 2024
1 parent a87a7a8 commit 478f035
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion electron-builder.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
appId: com.electron.neon3
productName: Neon3
productName: Neon Wallet
directories:
buildResources: build
files:
Expand Down
6 changes: 6 additions & 0 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { electronApp, is, optimizer } from '@electron-toolkit/utils'
import { app, BrowserWindow, shell } from 'electron'
import { join } from 'path'

import * as packageJson from '../../package.json'
import icon from '../../resources/icon.png?asset'

import { registerEncryptionHandlers } from './encryption'
Expand All @@ -19,6 +20,7 @@ let mainWindow: BrowserWindow | null = null

function createWindow(): void {
mainWindow = new BrowserWindow({
title: `Neon Wallet ${packageJson.version}`,
width: 1280,
height: 720,
minWidth: 1280,
Expand All @@ -36,6 +38,10 @@ function createWindow(): void {
mainWindow?.show()
})

mainWindow.on('page-title-updated', function (e) {
e.preventDefault()
})

mainWindow.webContents.setWindowOpenHandler(details => {
shell.openExternal(details.url)
return { action: 'deny' }
Expand Down

0 comments on commit 478f035

Please sign in to comment.