mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Use ===, which checks for equality of value as well as equality of type,
instead of doing both checks separately.
This commit is contained in:
parent
79cf499cf9
commit
b9a3855f98
@ -20,7 +20,7 @@ elinks.goto_url_hooks = new Array();
|
||||
elinks.goto_url_hook = function (url) {
|
||||
for (var i in elinks.goto_url_hooks){
|
||||
url = elinks.goto_url_hooks[i](url);
|
||||
if (typeof(url) == 'boolean' && !url) return false;
|
||||
if (false === url) return false;
|
||||
}
|
||||
|
||||
return url;
|
||||
@ -30,7 +30,7 @@ elinks.follow_url_hooks = new Array();
|
||||
elinks.follow_url_hook = function (url) {
|
||||
for (var i in elinks.follow_url_hooks) {
|
||||
url = elinks.follow_url_hooks[i](url);
|
||||
if (typeof(url) == 'boolean' && !url) return false;
|
||||
if (false === url) return false;
|
||||
}
|
||||
|
||||
return url;
|
||||
|
Loading…
Reference in New Issue
Block a user