1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-09 00:04:11 +01:00

Fix autocommand bug.

This commit is contained in:
Kris Maglione
2011-02-24 21:25:16 -05:00
parent 8d693c5d03
commit 885b16d7db

View File

@@ -138,12 +138,13 @@ var AutoCommands = Module("autocommands", {
if (options.get("eventignore").has(event))
return;
dactyl.echomsg('Executing ' + event + ' Auto commands for "*"', 8);
let lastPattern = null;
var { uri, doc } = args;
if (!uri)
var { url, doc } = args;
if (url)
uri = util.newURI(url);
else
var { uri, doc } = buffer;
event = event.toLowerCase();