Skip to content

Commit

Permalink
fix(GoogleDrive): includes is not a function
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Oct 11, 2024
1 parent d5ed9fe commit c799bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/adapters/GoogleDrive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export default class GoogleDriveAdapter extends CachingAdapter {
xmlDocText = await Crypto.decryptAES(this.server.password, xmlDocText, this.server.bookmark_file)
}
} catch (e) {
if (xmlDocText.includes('<?xml version="1.0" encoding="UTF-8"?>')) {
if (xmlDocText && xmlDocText.includes('<?xml version="1.0" encoding="UTF-8"?>')) {
// not encrypted, yet => noop
this.alwaysUpload = true
} else {
Expand Down

0 comments on commit c799bb0

Please sign in to comment.