This repository was archived by the owner on May 2, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11<!-- Header Start -->
22<header >
3- <div id =" notification-bar" class =" alert alert-warning" >
3+ <div id =" notification-bar" class =" alert alert-warning" hidden >
44 <span class =' onesignal-customlink-container' ></span >
55 <button type =" button" class =" close" aria-label =" Chiudi" ><span aria-hidden =" true" >× ; </span ></button >
66 </div >
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ OneSignal.push([
2626 'getNotificationPermission' ,
2727 ( permission ) => {
2828 const isPushSupported = OneSignal . isPushNotificationsSupported ( ) ;
29- if ( ! isPushSupported || permission ! == 'default' ) {
30- document . getElementById ( 'notification-bar' ) . hidden = true ;
29+ if ( isPushSupported && permission = == 'default' ) {
30+ document . getElementById ( 'notification-bar' ) . hidden = false ;
3131 }
3232 OneSignal . on ( 'notificationPermissionChange' , ( ) => {
3333 document . getElementById ( 'notification-bar' ) . hidden = true ;
Original file line number Diff line number Diff line change 2525 font-weight : bold !important ;
2626 color : inherit !important ;
2727 text-decoration : underline;
28+ display : inline-block !important ;
2829}
2930
3031# slider {
You can’t perform that action at this time.
0 commit comments