diff --git a/ebrowser.md b/ebrowser.md index b09f418..4b8ece1 100644 --- a/ebrowser.md +++ b/ebrowser.md @@ -14,7 +14,7 @@ Note: Usually electron apps are heavyweight as they use browsers for simple thin ##### Install with prebuilt binaries You can find prebuilt binaries [here](https://github.com/torappinfo/ebrowser/releases). -##### Install with nodejs +##### Install with nodejs installed npm install electron npm install ebrowser diff --git a/en/ebrowserreadme/index.html b/en/ebrowserreadme/index.html index 04745b6..64ed5dc 100644 --- a/en/ebrowserreadme/index.html +++ b/en/ebrowserreadme/index.html @@ -57,7 +57,7 @@

Installing (for Windows, MacOS and Linux)

Install with prebuilt binaries

You can find prebuilt binaries here.

-
Install with nodejs
+
Install with nodejs installed
npm install electron
 npm install ebrowser
 
diff --git a/en/index.xml b/en/index.xml index 1bad244..e76dc69 100644 --- a/en/index.xml +++ b/en/index.xml @@ -6,7 +6,7 @@ Recent content on uweb browser: unlimited power Hugo en - Wed, 19 Jun 2024 09:41:18 +0800 + Wed, 19 Jun 2024 06:57:59 +0800 Text selection/processing diff --git a/en/sitemap.xml b/en/sitemap.xml index 69d3898..ab321b5 100644 --- a/en/sitemap.xml +++ b/en/sitemap.xml @@ -71,7 +71,7 @@ /> /en/ - 2024-06-19T09:41:18+08:00 + 2024-06-19T06:57:59+08:00 /en/ebrowserreadme/ - 2024-06-19T09:41:18+08:00 + 2024-06-19T06:57:59+08:00 /en/mirrors/ 2024-06-18T23:17:17+08:00 @@ -539,7 +539,7 @@ /> /en/unlist/ - 2024-06-19T09:41:18+08:00 + 2024-06-19T06:57:59+08:00 { - shell.openPath(__dirname); - }}, - ] - }, { label: '&Help', submenu: [ @@ -373,7 +365,8 @@ function topMenu(){ addrCommand(":update"); }}, { label: 'Help', accelerator: 'F1', click: ()=>{ - help(); + let js="tabs.children[iTab].src='file://'+__dirname+'/README.md'"; + win.webContents.executeJavaScript(js,false) }}, { label: 'Stop', accelerator: 'Ctrl+C', click: ()=>{ let js="tabs.children[iTab].stop()" @@ -541,7 +534,7 @@ async function updateApp(url){//url must ending with "/" msg = "remote package.json corrupted" break; } - iV = iV + 10; + iV = iV + 11; let iE = head.indexOf('"',iV+4); let iS = head.lastIndexOf('.',iE-1); let nLatestVer = parseInt(head.substring(iS+1,iE)); @@ -594,19 +587,3 @@ async function writeFile(filename, str){ }); }); } -function help(){ - const readme = "README.md"; - const htmlFN = path.join(__dirname,readme+".html"); - if(!fs.existsSync(htmlFN)){ - const readmeP = path.join(__dirname,readme); - try { - fs.copyFileSync(readmeP, htmlFN); - const postscript =""; - fs.appendFileSync(htmlFN,postscript); - }catch(e){ - htmlFN = readmeP; - } - } - let js=`tabs.children[iTab].src="file://${htmlFN}"`; - win.webContents.executeJavaScript(js,false) -} diff --git a/sitemap.xml b/sitemap.xml index dee3d52..77dccce 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -4,7 +4,7 @@ /en/sitemap.xml - 2024-06-19T09:41:18+08:00 + 2024-06-19T06:57:59+08:00