mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-20 06:32:30 +02:00
Fix an odd :style completion bug.
This commit is contained in:
1 parent
dc2a286adc
commit
0c43618a3f
2 files changed
+7
-7
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user