Переглянути джерело

브라우저 알림 작동 안하니 그냥 삭제

Surplus_Up (2DU) 6 роки тому
батько
коміт
563b211fb0

+ 0 - 1
route/topic_tool.py

@@ -32,7 +32,6 @@ def topic_tool_2(conn, topic_num):
     data += '''
         <h2>''' + load_lang('tool') + '''</h2>
         <ul>
-            <li><a id="reload" href="javascript:void(0);" onclick="req_alarm();">''' + load_lang('use_push_alarm') + '''</a></li>
             <li>''' + load_lang('topic_state') + ''' : ''' + t_state + '' + (' (Agree)' if close_data and (close_data[0][1] == 'O') else '') + '''</li>
             <li>''' + load_lang('topic_acl') + ''' : <a href="/acl/TEST#exp">''' + ('Normal' if not topic_acl_get or (topic_acl_get[0][0] == '') else topic_acl_get[0][0]) + '''</a></li>
         </ul>

+ 0 - 6
views/main_css/js/load_topic.js

@@ -49,12 +49,6 @@ function topic_plus_load(topic_num, num) {
                 p_data.innerHTML += n_data;
                 eval(t_plus_data);
 
-                // https://programmingsummaries.tistory.com/379
-                var notification = new Notification("openNAMU", { body: '#' + n_num });
-                setTimeout(function () {
-                    notification.close();
-                }, 5000);
-
                 topic_plus_load(topic_num, String(Number(num) + 1));
                 clearInterval(test);
             }

+ 0 - 10
views/main_css/js/req_browser_alarm.js

@@ -1,10 +0,0 @@
-// https://programmingsummaries.tistory.com/379
-function req_alarm() {
-    Notification.requestPermission(function (result) {
-        if(result === 'denied') {
-            document.cookie = 'topic_req=false;';
-        } else {
-            document.cookie = 'topic_req=false;';
-        }
-    });
-}