blob: ed660a6e9c6ba78c1f7fe2197f0e8b376e83eeee (
plain)
1
2
3
4
5
6
7
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
self.addEventListener('push', event => {
const data = event.data.json();
self.registration.showNotification(data.title, { body : data.text });
});
|