mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-29 15:33:34 +02:00
fixed PageLoad autoevent
This commit is contained in:
@@ -447,8 +447,10 @@ 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:
|
||||||
|
|
||||||
var url = liberator.buffer.URL;
|
// loaded page can be not current (e.g. background tab loaded)
|
||||||
var title = liberator.buffer.title;
|
// so we should use defaultView from event object, not liberator.buffer.
|
||||||
|
var url = doc.defaultView.location.href;
|
||||||
|
var title = doc.defaultView.title;
|
||||||
|
|
||||||
//update history
|
//update history
|
||||||
if (url && liberator.history)
|
if (url && liberator.history)
|
||||||
|
|||||||
Reference in New Issue
Block a user