Set Timeout Delay
Summary:
How to set Time Out /Delay after 30 seconds of Inactivity
We are using this Function to delay 30 seconds
PageModule.prototype.timeoutAfter = function(seconds){
return new Promise(function(resolve){window.setTimeout(function(){resolve()},seconds*1000)});
};
But the Page Times Out while entering the data in the Page.
What additional validation needs to be done in the above Function so that the Page Times out only if the data is not entered until 30 seconds?
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):