Skip to content

Commit

Permalink
Use includes instead
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinhenderson committed Aug 24, 2022
1 parent bed4e31 commit f19fc83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/squirrel-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const check = async function () {
logger.info("\n===== MADE EDIT SUCCESSFULLY =====");
} catch (error) {
if (
error.message.toLowerCase().contains("user did not grant permission.")
error.message.toLowerCase().includes("user did not grant permission.")
) {
logger.info("User didn't give permission");
dialog.showMessageBoxSync({
Expand Down

0 comments on commit f19fc83

Please sign in to comment.