OneSignal is a free push notification service for web and mobile apps. This plugin makes it easy to integrate your website with OneSignal Push Notifications. https://onesignal.com
Other
80
stars
42
forks
source link
Fix jQuery bug happening due to notice.js running on page editor also #302
On WP sites using Gutenberg editor, notice.js also runs on Page edits, not just Post edits. This causes the script to not find the element it is looking for with jQuery and leads to a crash.
This PR checks the element was found prior to trying to access its attributes.
Description
On WP sites using Gutenberg editor,
notice.js
also runs on Page edits, not just Post edits. This causes the script to not find the element it is looking for with jQuery and leads to a crash.This PR checks the element was found prior to trying to access its attributes.
This change is