Fix "path.startsWith is not a function" sync error on Windows

`OS.Path.join()` on Windows throws if an integer is passed. Seems like
this would happen on another computer whenever an image annotation is
deleted in a group?
This commit is contained in:
Dan Stillman 2022-03-22 23:58:58 -04:00
parent 37c48dc3ee
commit fcb16f628b

View file

@ -103,7 +103,7 @@ Zotero.Annotations = new function () {
parts.push('library');
}
else if (library.libraryType == 'group') {
parts.push('groups', library.groupID);
parts.push('groups', library.groupID + '');
}
else {
throw new Error(`Unexpected library type '${library.libraryType}'`);