1.1.6 rising and select for routes by subscribe
This commit is contained in:
@@ -71,7 +71,7 @@ function urlBase64ToUint8Array(base64String) {
|
||||
// return outputData;
|
||||
// }
|
||||
|
||||
const subscribe = async (reg) => {
|
||||
const push_subscribe = async (reg) => {
|
||||
const subscription = await reg.pushManager.getSubscription();
|
||||
if (subscription) {
|
||||
sendSubData(subscription);
|
||||
@@ -93,7 +93,7 @@ const subscribe = async (reg) => {
|
||||
const sendSubData = async (subscription) => {
|
||||
const browser = navigator.userAgent.match(/(firefox|msie|chrome|safari|trident)/ig)[0].toLowerCase();
|
||||
const data = {
|
||||
status_type: 'subscribe',
|
||||
status_type: 'push_subscribe',
|
||||
subscription: subscription.toJSON(),
|
||||
browser: browser,
|
||||
user_agent: browser,
|
||||
|
||||
Reference in New Issue
Block a user