mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-28 12:52:27 +01:00
move PageLoad autocmd event triggering to the end of onPageLoad()
This commit is contained in:
@@ -478,8 +478,6 @@ liberator.Events = function () //{{{
|
||||
if (url && liberator.history)
|
||||
liberator.history.add(url, title);
|
||||
|
||||
liberator.autocommands.trigger("PageLoad", url);
|
||||
|
||||
// mark the buffer as loaded, we can't use liberator.buffer.loaded
|
||||
// since that always refers to the current buffer, while doc can be
|
||||
// any buffer, even in a background tab
|
||||
@@ -503,6 +501,8 @@ liberator.Events = function () //{{{
|
||||
{
|
||||
liberator.echomsg("Background tab loaded: " + title || url, 1);
|
||||
}
|
||||
|
||||
liberator.autocommands.trigger("PageLoad", url);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user