Improved inactivity timeout and function key detection

This commit is contained in:
Deon George
2020-07-24 23:00:35 +10:00
parent 17ddda1cd5
commit 5293c8cb33
3 changed files with 71 additions and 21 deletions

View File

@@ -49,6 +49,9 @@ var INACTIVE ='\1n\1h\1RINACTIVITY DISCONNECT';
var NO_HISTORY_FRAMES =['980a','98b','981a'];
var SYSTEM_OWNER =9;
var INKEY_TIMEOUT =10000;
var INACTIVE_NOLOGIN =1000;
var INACTIVE_LOGIN =5*60000;
// Our frame object
function TexFrame() {

View File

@@ -218,7 +218,7 @@ function pageEditor(page) {
log(LOG_DEBUG,' - pageEditor: p='+p+'('+p.length+') user ['+JSON.stringify(frameusers)+'] - :'+frameusers.indexOf(user.number.toString()));
var re = new RegExp('^' + p, 'g');
if (page.toString().match(re) && (frameusers.indexOf(user.number.toString()) == 1)) {
if (page.toString().match(re) && (frameusers.indexOf(user.number.toString()) !== -1)) {
pageditor = true;
throw BreakException;
}