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

Fix an odd :style completion bug.

This commit is contained in:
Kris Maglione
2010-12-20 09:24:19 -05:00
parent dc2a286adc
commit 0c43618a3f
2 changed files with 7 additions and 7 deletions

View File

@@ -287,7 +287,7 @@ const Styles = Module("Styles", {
else if (/[\/:]/.test(filter))
function test(uri) uri.spec === filter;
else
function test(uri) uri.host === filter;
function test(uri) { try { return uri.host === filter } catch (e) { return false } };
test.toString = function toString() filter;
if (arguments.length < 2)
return test;