mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
add search.json
This commit is contained in:
parent
2e2b048336
commit
9acd6f4a24
4 changed files with 44 additions and 13 deletions
|
@ -35,7 +35,10 @@ Copyright (C) 2024 Richard Hao Cao
|
|||
let lastKeys_millis = 0;
|
||||
|
||||
fs.readFile(path.join(__dirname,'search.json'), 'utf8', (err, jsonString) => {
|
||||
if (err) return;
|
||||
if (err) {
|
||||
coloncommand(":js fetch2file(repositoryurl,'search.json')");
|
||||
return;
|
||||
}
|
||||
initSearchEngines(jsonString,false);
|
||||
});
|
||||
fs.readFile(path.join(__dirname,'mapkeys.json'), 'utf8', (err, jsonStr) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue