From 07eac4ca6b36d9f3692897c30b0d658a74c42efa Mon Sep 17 00:00:00 2001 From: IT-MikeS <20338451+IT-MikeS@users.noreply.github.com> Date: Tue, 1 Oct 2024 12:29:28 -0400 Subject: [PATCH] chore: jsdoc update --- www/FirebaseAnalytics.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/www/FirebaseAnalytics.js b/www/FirebaseAnalytics.js index b5bbc2e..bf2734f 100644 --- a/www/FirebaseAnalytics.js +++ b/www/FirebaseAnalytics.js @@ -64,16 +64,11 @@ module.exports = { * @param {function} [error] - Error callback function. * * @example - * setConsent({ - * AD_STORAGE: 'GRANTED', - * ANALYTICS_STORAGE: 'DENIED' - * }, - * function() { - * console.log('Consent settings updated successfully'); - * }, - * function(error) { - * console.error('Error updating consent settings:', error); - * }); + * const consentSettings = { + * AD_STORAGE: 'GRANTED', + * ANALYTICS_STORAGE: 'GRANTED', + * }; + * FirebaseAnalytics.setConsent(JSON.stringify(consentSettings)); */ setConsent: function (consentSettings, success, error) { exec(success, error, PLUGIN_NAME, 'setConsent', [consentSettings]);