diff --git a/chrome/content/zotero/note.js b/chrome/content/zotero/note.js index ab932b963..8056dd03d 100644 --- a/chrome/content/zotero/note.js +++ b/chrome/content/zotero/note.js @@ -37,8 +37,8 @@ function onLoad() { if (window.arguments) { var io = window.arguments[0]; } - var itemID = io.itemID; - var collectionID = io.collectionID; + var itemID = parseInt(io.itemID); + var collectionID = parseInt(io.collectionID); var parentItemKey = io.parentItemKey; return Zotero.spawn(function* () {