Commit ac8acaf7 authored by Sebastian Noack's avatar Sebastian Noack

Fixed #39 - Default notificationdata.firstVersion to "0"

parent c28b3cdb
Pipeline #74211495 failed with stages
in 5 minutes and 2 seconds
......@@ -21,6 +21,7 @@
const {startIconAnimation, stopIconAnimation} = require("./icon");
const {Utils} = require("./utils");
const {Prefs} = require("./prefs");
const {Notification: NotificationStorage} =
require("../adblockpluscore/lib/notification");
const {initAntiAdblockNotification} =
......@@ -290,6 +291,9 @@ function showNotification(notification)
*/
exports.initNotifications = () =>
{
if (typeof Prefs.notificationdata.firstVersion == "undefined")
Prefs.notificationdata.firstVersion = "0";
if (browserNotificationsSupported)
{
let onClick = (notificationId, buttonIndex) =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment