mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
ebrowser v1.0.53
This commit is contained in:
parent
5d062edbfa
commit
093a4ef3ff
3 changed files with 13 additions and 11 deletions
|
@ -454,6 +454,7 @@ You should have received a copy of the GNU General Public License along with thi
|
|||
function handleQuery(q){
|
||||
if(q.length>1){
|
||||
let c0=q.charCodeAt(0);
|
||||
let c1=q.charCodeAt(1);
|
||||
switch(c0){
|
||||
case 33://"!"
|
||||
bangcommand(q);
|
||||
|
@ -463,7 +464,6 @@ You should have received a copy of the GNU General Public License along with thi
|
|||
tabs.children[iTab].findInPage(q.substring(1));
|
||||
return;
|
||||
case 58://':'
|
||||
let c1=q.charCodeAt(1);
|
||||
if(c1>98 && 112!=c1)
|
||||
coloncommand(q);
|
||||
else
|
||||
|
@ -471,16 +471,18 @@ You should have received a copy of the GNU General Public License along with thi
|
|||
recQueryHistory(q);
|
||||
return;
|
||||
}
|
||||
if(58===c1){
|
||||
console.log(q)
|
||||
internalLink(q);
|
||||
return;
|
||||
}
|
||||
}
|
||||
var url=q;
|
||||
NOREC: do{
|
||||
do {
|
||||
if(q.length>12){
|
||||
let c6 = q.charCodeAt(6);
|
||||
if(58===q.charCodeAt(1)){
|
||||
internalLink(q);
|
||||
return;
|
||||
}else if(47===c6){// '/'
|
||||
if(47===c6){// '/'
|
||||
let c5 = q.charCodeAt(5);
|
||||
if(47===c5 && 58===q.charCodeAt(4))//http/file urls
|
||||
break NOREC;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue