Skip to content

Commit 65b32e7

Browse files
committed
[Store norske leksikon] Report clean URL for parsing errors
1 parent 385c8de commit 65b32e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Store norske leksikon.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsib",
12-
"lastUpdated": "2014-07-26 01:03:54"
12+
"lastUpdated": "2014-07-26 01:22:54"
1313
}
1414

1515
/* Translator for Store norske leksikon
@@ -48,7 +48,8 @@ function doWeb(doc, url) {
4848
null, '');
4949
if (abs) item.abstractNote = ZU.trimInternal(abs);
5050

51-
Zotero.Utilities.doGet(url.replace(/[#?].*/, '') + ".json", function(json) {
51+
url = url.replace(/[#?].*/, '');
52+
Zotero.Utilities.doGet(url + ".json", function(json) {
5253

5354
try {
5455
obj = JSON.parse(json);

0 commit comments

Comments
 (0)