From 885b16d7db9bd0d0bea63d26707d4cb0b0e81810 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 24 Feb 2011 21:25:16 -0500 Subject: [PATCH] Fix autocommand bug. --- common/content/autocommands.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/content/autocommands.js b/common/content/autocommands.js index 39b28214..fb437eaa 100644 --- a/common/content/autocommands.js +++ b/common/content/autocommands.js @@ -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();