🚀 Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
home2
/
birthday
/
Downloads
/
public
/
custom
/
js
✏️
Editing: onesignal.js
"use strict"; $(document).ready(function() { var OneSignal = window.OneSignal || []; OneSignal.push(["init", { appId: ONESIGNAL_APP_ID, subdomainName: "", autoRegister: true, promptOptions: { actionMessage: "We'd like to show you live notifications.", acceptButtonText: "ALLOW", cancelButtonText: "NO THANKS" } }]); var OneSignal = OneSignal || []; OneSignal.push(function(){ OneSignal.setExternalUserId(USER_ID); OneSignal.on('subscriptionChange', function(isSubscibed){ }); var isPushSupported = OneSignal.isPushNotificationsSupported(); if(isPushSupported) { OneSignal.getUserId( function(userId) { }); OneSignal.isPushNotificationsEnabled().then(function(isEnabled) { if(isEnabled) { }else { OneSignal.showHttpPrompt(); } }); }else{ } }); });
💾 Save Changes
❌ Cancel