Skip to content

Commit 29f677b

Browse files
committed
Fixed check interval;
1 parent 4602ce1 commit 29f677b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

browsernotification.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ This plugin allow your browser to show notifications for GLPI
7676
<compatibility>0.90</compatibility>
7777
<compatibility>9.1</compatibility>
7878
</version>
79+
<version>
80+
<num>1.1.2</num>
81+
<compatibility>0.85</compatibility>
82+
<compatibility>0.90</compatibility>
83+
<compatibility>9.1</compatibility>
84+
</version>
7985
</versions>
8086
<langs>
8187
<lang>en_US</lang>

js/user_notification.js.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
$options = [
1111
'user_id' => Session::getLoginUserID(),
1212
'base_url' => $CFG_GLPI['root_doc'],
13-
'interval' => ($CFG_BROWSER_NOTIF['check_interval'] < 5 ? $CFG_BROWSER_NOTIF['check_interval'] : 5) * 1000,
13+
'interval' => ($CFG_BROWSER_NOTIF['check_interval'] > 5 ? $CFG_BROWSER_NOTIF['check_interval'] : 5) * 1000,
1414
'locale' => strtolower($CFG_GLPI["languages"][$_SESSION['glpilanguage']][2]),
1515
];
1616

setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
define('PLUGIN_BROWSERNOTIFICATION_VERSION', '1.1.1');
3+
define('PLUGIN_BROWSERNOTIFICATION_VERSION', '1.1.2');
44

55
// Init the hooks of the plugins -Needed
66
function plugin_init_browsernotification() {

0 commit comments

Comments
 (0)