Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Moved local variable to littel above to avoid console error (#307)

jithendraprasad9999021da3840f10
diff --git a/src/Web/Grand.Web/wwwroot/theme/script/public.push.notifications.js b/src/Web/Grand.Web/wwwroot/theme/script/public.push.notifications.js
index 4ae323daa..9234bb474 100644
--- a/src/Web/Grand.Web/wwwroot/theme/script/public.push.notifications.js
+++ b/src/Web/Grand.Web/wwwroot/theme/script/public.push.notifications.js
@@ -35,11 +35,11 @@
const messaging = firebase.messaging();
var url = this.url;
+ let success = false;
+ let value = "";
messaging.requestPermission()
.then(function () {
- let success = false;
- let value = "";
messaging.getToken()
.then(function (currentToken) {