]> git.mxchange.org Git - friendica.git/commitdiff
remove debug logs
authorFabrixxm <fabrix.xm@gmail.com>
Wed, 24 Jun 2015 09:04:38 +0000 (11:04 +0200)
committerFabrixxm <fabrix.xm@gmail.com>
Wed, 24 Jun 2015 09:04:38 +0000 (11:04 +0200)
js/main.js

index 8de49def03b9d785027c7bc34976cd45997351e2..455df9bb09161dc3103ffdb2c817ac23eaf0ce5a 100644 (file)
                                        nnm.append(html);
                                        
                                        var notification_id = e.attr('href').match(/\d+$/)[0];
-                                       console.log(notification_lastitem, notification_id);
                                        if (notification_lastitem!== null && notification_id!=notification_lastitem) {
-                                               console.log( "eh!",getNotificationPermission() );
                                                if (notification_first_id===0) notification_first_id = notification_id;
                                                if (getNotificationPermission()==="granted") {
                                                        var notification = new Notification(document.title, {
                                        
                                });
                                if (notification_first_id!==0) notification_lastitem = notification_first_id;
-                               console.log("end:", notification_lastitem, notification_first_id);
                                localStorage.setItem("notification-lastitem", notification_lastitem)
 
                                $("img[data-src]", nnm).each(function(i, el){
@@ -787,7 +784,7 @@ function previewTheme(elm) {
 // notification permission settings in localstorage
 // set by settings page
 function getNotificationPermission() {
-       if (window.Notification === undefined) {
+       if (window["Notification"] === undefined) {
                return null;
        }
     if (Notification.permission === 'granted') {