JAVASCRIPT   118

web-push.js

Guest on 3rd August 2021 11:17:24 AM

  1. /* global jQuery:false */
  2. /* global TRX_ADDONS_STORAGE:false */
  3.  
  4. if(TRX_ADDONS_STORAGE['web_push_appid'] !== ''){
  5.     var OneSignal = window.OneSignal || [];
  6.     OneSignal.push(function() {
  7.         OneSignal.init({
  8.             appId: TRX_ADDONS_STORAGE['web_push_appid'],
  9.         });
  10.     });
  11. }

Raw Paste


Login or Register to edit or fork this paste. It's free.