Skip to content

Commit

Permalink
fix: markdown format issues
Browse files Browse the repository at this point in the history
* fix: markdown format issues
* fix: center elements on the page
  • Loading branch information
dice2o committed May 27, 2023
1 parent 44a23a0 commit 14b87d6
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 130 deletions.
4 changes: 2 additions & 2 deletions forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = {
productName: 'BingGPT',
description: 'AI-powered copilot',
productDescription: 'AI-powered copilot',
version: '0.3.5',
version: '0.3.6',
categories: ['Utility'],
maintainer: 'dice2o',
homepage: 'https://github.com/dice2o/BingGPT',
Expand All @@ -56,7 +56,7 @@ module.exports = {
productName: 'BingGPT',
description: 'AI-powered copilot',
productDescription: 'AI-powered copilot',
version: '0.3.5',
version: '0.3.6',
categories: ['Utility'],
maintainer: 'dice2o',
homepage: 'https://github.com/dice2o/BingGPT',
Expand Down
17 changes: 8 additions & 9 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const createWindow = () => {
},
},
{
label: 'BingGPT v0.3.5',
label: 'BingGPT v0.3.6',
visible: parameters.selectionText.trim().length === 0,
click: () => {
shell.openExternal('https://github.com/dice2o/BingGPT/releases')
Expand All @@ -226,8 +226,6 @@ const createWindow = () => {
const bingUrl = `https://edgeservices.bing.com/edgediscover/query?&${
isDarkMode ? 'dark' : 'light'
}schemeovr=1&FORM=SHORUN&udscs=1&udsnav=1&setlang=${locale}&features=udssydinternal&clientscopes=windowheader,coauthor,chat,&udsframed=1`
const userAgent =
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36'
mainWindow.loadURL(bingUrl)
// Open links in default browser
mainWindow.webContents.setWindowOpenHandler(({ url }) => {
Expand Down Expand Up @@ -396,17 +394,18 @@ app.whenReady().then(() => {
})
}
})
// Get font size settings
ipcMain.on('get-font-size', () => {
// Init style
ipcMain.on('init-style', () => {
const fontSize = config.get('fontSize')
if (fontSize !== 14) {
setTimeout(() => {
setTimeout(() => {
if (fontSize !== 14) {
BrowserWindow.getAllWindows()[0].webContents.send(
'set-font-size',
fontSize
)
}, 1000)
}
}
BrowserWindow.getAllWindows()[0].webContents.send('set-initial-style')
}, 1000)
})
// Error message
ipcMain.on('error', (event, detail) => {
Expand Down
Loading

0 comments on commit 14b87d6

Please sign in to comment.