ebrowser 1.0.29

This commit is contained in:
James Feng Cao 2024-06-19 22:41:21 +08:00
parent 9acd6f4a24
commit 052cb9dad1
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{"version":"1.0.28",
{"version":"1.0.29",
"name": "ebrowser",
"description": "The keyboard-friendly minimal suckless web browser",
"main": "webview.js",

View file

@ -53,8 +53,8 @@ fs.readFile(path.join(__dirname,'redirect.json'), 'utf8', (err, jsonString) => {
});
async function createWindow () {
let json = await fs.promises.readFile(path.join(__dirname,'uas.json'), 'utf8');
try {
let json = await fs.promises.readFile(path.join(__dirname,'uas.json'), 'utf8');
useragents = JSON.parse(json);
} catch (e){console.log(e)}