Changeset 2317588
- Timestamp:
- 06/03/2020 06:47:04 PM (6 years ago)
- Location:
- pushnami-web-push-notifications/trunk
- Files:
-
- 3 edited
-
includes/class-pushnami.php (modified) (4 diffs)
-
pushnami.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pushnami-web-push-notifications/trunk/includes/class-pushnami.php
r2317096 r2317588 85 85 public static function writeManifestJson($force = false, $showErrors = true) 86 86 { 87 // bail if using custom manifest (PWA for WP) 88 $useCustomManifest = get_option('pushnami_use_custom_manifest'); 89 if ($useCustomManifest) return; 90 87 91 $gcm_sender_id = "".get_option('pushnami_gcm_id'); 88 92 if (!$gcm_sender_id) $gcm_sender_id = PUSHNAMI_DEFAULT_GCM; … … 103 107 public static function writeServiceWorker($force = false, $showErrors = true) 104 108 { 109 // bail if using custom manifest (PWA for WP) 110 $useCustomManifest = get_option('pushnami_use_custom_manifest'); 111 if ($useCustomManifest) return; 112 105 113 $api_url = get_option('pushnami_api_url'); 106 114 if (!$api_url) $api_url = PUSHNAMI_DEFAULT_API_URL; … … 338 346 public static function installFunctions() 339 347 { 348 self::checkForPWAforWP(); 340 349 self::writeServiceWorker(false, false); 341 350 self::writeManifestJson(false, false); 351 } 352 353 /** 354 * Update hook 355 * @return void 356 */ 357 public static function update() 358 { 342 359 self::checkForPWAforWP(); 360 self::writeServiceWorker(); 361 self::writeManifestJson(); 343 362 } 344 363 … … 352 371 update_option('pushnami_use_custom_manifest', false); 353 372 } 354 }355 356 /**357 * Update hook358 * @return void359 */360 public static function update()361 {362 self::writeServiceWorker();363 self::writeManifestJson();364 self::checkForPWAforWP();365 373 } 366 374 -
pushnami-web-push-notifications/trunk/pushnami.php
r2317096 r2317588 7 7 Plugin URI: https://wordpress.org/plugins/pushnami-web-push-notifications 8 8 Description: Capture & Monetize Your Audience. The leader for web push, mobile push notifications, and email. Trusted by more than 20K brands to send 10 billion messages per month. 9 Version: 1.0. 29 Version: 1.0.3 10 10 Author: Pushnami 11 11 Author URI: https://www.pushnami.com -
pushnami-web-push-notifications/trunk/readme.txt
r2317096 r2317588 59 59 == Changelog == 60 60 61 = 1.0. 2=61 = 1.0.3 = 62 62 * Adds plugin extension compatibility for PWA for WP 63 63
Note: See TracChangeset
for help on using the changeset viewer.