Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Commit 9eee26f

Browse files
committed
this fixes #397
1 parent 82945fb commit 9eee26f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

js/contentscript-end.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,14 @@ var cosmeticFiltering = (function() {
347347
continue;
348348
}
349349
// id
350-
v = nodes[i].id.trim();
350+
v = nodes[i].id;
351+
// https://github.com/gorhill/httpswitchboard/issues/397
352+
// `id` can be something else than a string
353+
if ( typeof v !== 'string' ) {
354+
v = '';
355+
} else {
356+
v = v.trim();
357+
}
351358
if ( v !== '' ) {
352359
v = '#' + v;
353360
if ( !qq[v] ) {

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "__MSG_extName__",
44
"short_name": "HTTPSB",
5-
"version": "1.0.1.1",
5+
"version": "1.0.1.2",
66
"description": "__MSG_extShortDesc__",
77
"icons": {
88
"16": "icon_16.png",

0 commit comments

Comments
 (0)