diff --git a/ebrowser.md b/ebrowser.md
index 4b8ece12..b09f418f 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 installed
+##### Install with nodejs
npm install electron
npm install ebrowser
diff --git a/en/ebrowserreadme/index.html b/en/ebrowserreadme/index.html
index 64ed5dc4..04745b6c 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 installed
+Install with nodejs
npm install electron
npm install ebrowser
diff --git a/en/index.xml b/en/index.xml
index e76dc69c..1bad2447 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 06:57:59 +0800
+ Wed, 19 Jun 2024 09:41:18 +0800
-
Text selection/processing
diff --git a/en/sitemap.xml b/en/sitemap.xml
index ab321b50..69d38983 100644
--- a/en/sitemap.xml
+++ b/en/sitemap.xml
@@ -71,7 +71,7 @@
/>
/en/
- 2024-06-19T06:57:59+08:00
+ 2024-06-19T09:41:18+08:00
/en/ebrowserreadme/
- 2024-06-19T06:57:59+08:00
+ 2024-06-19T09:41:18+08:00
/en/mirrors/
2024-06-18T23:17:17+08:00
@@ -539,7 +539,7 @@
/>
/en/unlist/
- 2024-06-19T06:57:59+08:00
+ 2024-06-19T09:41:18+08:00
{
- let js="tabs.children[iTab].src='file://'+__dirname+'/README.md'";
- win.webContents.executeJavaScript(js,false)
+ help();
}},
{ label: 'Stop', accelerator: 'Ctrl+C', click: ()=>{
let js="tabs.children[iTab].stop()"
@@ -534,7 +533,7 @@ async function updateApp(url){//url must ending with "/"
msg = "remote package.json corrupted"
break;
}
- iV = iV + 11;
+ iV = iV + 10;
let iE = head.indexOf('"',iV+4);
let iS = head.lastIndexOf('.',iE-1);
let nLatestVer = parseInt(head.substring(iS+1,iE));
@@ -587,3 +586,19 @@ 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 77dccce9..dee3d524 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -4,7 +4,7 @@
/en/sitemap.xml
- 2024-06-19T06:57:59+08:00
+ 2024-06-19T09:41:18+08:00