This file is indexed.

/usr/share/hotot/js/notification.js is in hotot-common 1:0.9.8.14-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
var notification = {

_queue: [],

_delay: 3000,

_k_limit: 3,

init:
function init() {
    notification.check_proc();
    setInterval(notification.check_proc, 1000);
},

check_proc:
function check_proc() {
    if (notification._queue.length) {
        var tuple = notification._queue.shift();
        notification.notify(tuple[0], tuple[1], tuple[2], tuple[3]);
    }
},

notify:
function notify(title, summary, image, type) {
    title = title.replace(/&gt;/g, '>').replace(/&lt;/g, '<').replace(/&amp;/g, '&');
    summary = summary.replace(/&gt;/g, '>').replace(/&lt;/g, '<').replace(/&amp;/g, '&');
    if (util.is_native_platform()) {
        hotot_action('system/notify/'
            + type
            + '/' + encodeURIComponent(title)
            + '/' + encodeURIComponent(summary)
            + '/' + encodeURIComponent(image));
    } else if (conf.vars.platform == 'Chrome') {
        var img_url = image? image: './image/ic64_hotot.png';
        var notification = webkitNotifications.createNotification(img_url, title, summary);
        notification.show();
        setTimeout(function() {notification.cancel()}, 5000);
    }
},

push:
function push(title, summary, image, type) {
    notification._queue.push([title, summary, image, type]);
}

};