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:
@@ -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