From f19fc83c068ca82c6e86c84d9277b613c4a6e94b Mon Sep 17 00:00:00 2001 From: Gavin Henderson Date: Wed, 24 Aug 2022 10:08:42 +0100 Subject: [PATCH] Use includes instead --- src/backend/squirrel-events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/squirrel-events.js b/src/backend/squirrel-events.js index 16603e6..1476664 100644 --- a/src/backend/squirrel-events.js +++ b/src/backend/squirrel-events.js @@ -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({