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.

Update firebasejs

KrzysztofPajakb249fecf02fa
diff --git a/src/Web/Grand.Web/Views/Shared/Components/PushNotificationsRegistration/Default.cshtml b/src/Web/Grand.Web/Views/Shared/Components/PushNotificationsRegistration/Default.cshtml
index a5b0de881..34ed5d70b 100644
--- a/src/Web/Grand.Web/Views/Shared/Components/PushNotificationsRegistration/Default.cshtml
+++ b/src/Web/Grand.Web/Views/Shared/Components/PushNotificationsRegistration/Default.cshtml
@@ -1,11 +1,11 @@
@model Grand.Web.Models.PushNotifications.PublicInfoModel
@inject IPageHeadBuilder pagebuilder
-<script asp-location="Footer" asp-src="https://www.gstatic.com/firebasejs/7.21.0/firebase.js"></script>
+<script asp-location="Footer" asp-src="https://www.gstatic.com/firebasejs/8.6.5/firebase.js"></script>
<script asp-location="Head" asp-src="/theme/script/vue.push.notifications.js"></script>
<script asp-location="Footer">
- PushNotifications.init("@Model.PublicApiKey", "@Model.SenderId", "@Model.ProjectId", "@Model.AuthDomain", "@Model.StorageBucket", "@Model.AppId",
- "@Model.DatabaseUrl", "@Url.Action("ProcessRegistration", "PushNotifications")");
+ PushNotifications.init("@Model.PublicApiKey", "@Model.SenderId", "@Model.ProjectId", "@Model.AuthDomain", "@Model.StorageBucket",
+ "@Model.DatabaseUrl", "@Url.Action("ProcessRegistration", "PushNotifications")", "@Model.AppId");
PushNotifications.process();
</script>
\ No newline at end of file
diff --git a/src/Web/Grand.Web/wwwroot/firebase-messaging-sw.js b/src/Web/Grand.Web/wwwroot/firebase-messaging-sw.js
index e9bba5895..4b6470708 100644
--- a/src/Web/Grand.Web/wwwroot/firebase-messaging-sw.js
+++ b/src/Web/Grand.Web/wwwroot/firebase-messaging-sw.js
@@ -1,5 +1,5 @@
-importScripts('https://www.gstatic.com/firebasejs/7.21.0/firebase-app.js');
-importScripts('https://www.gstatic.com/firebasejs/7.21.0/firebase-messaging.js');
+importScripts('https://www.gstatic.com/firebasejs/8.6.5/firebase-app.js');
+importScripts('https://www.gstatic.com/firebasejs/8.6.5/firebase-messaging.js');
var config = {
apiKey: "",