mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:42:27 +01:00
better fix for :hs
This commit is contained in:
@@ -447,10 +447,8 @@ liberator.Events = function () //{{{
|
|||||||
|
|
||||||
// code which should happen for all (also background) newly loaded tabs goes here:
|
// code which should happen for all (also background) newly loaded tabs goes here:
|
||||||
|
|
||||||
// loaded page can be not current (e.g. background tab loaded)
|
var url = doc.location.href;
|
||||||
// so we should use defaultView from event object, not liberator.buffer.
|
var title = doc.title;
|
||||||
var url = doc.defaultView.location.href;
|
|
||||||
var title = doc.defaultView.title;
|
|
||||||
|
|
||||||
// update history
|
// update history
|
||||||
if (url && liberator.history)
|
if (url && liberator.history)
|
||||||
@@ -479,7 +477,7 @@ liberator.Events = function () //{{{
|
|||||||
}
|
}
|
||||||
else // background tab
|
else // background tab
|
||||||
{
|
{
|
||||||
liberator.commandline.echo("Background tab loaded: " + doc.title || doc.location.href, liberator.commandline.HL_INFOMSG);
|
liberator.commandline.echo("Background tab loaded: " + title || url, liberator.commandline.HL_INFOMSG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user