You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can do ins.reload() no problem if I initialised ins with no params (i.e. ins = instant()) but if I pass a root folder to instant (i.e. ins = instant("/some/folder")) then the ins.reload is undefined.
varexpress=require('express');varinstant=require('instant');varapp=express();varins=instant("/some/folder/");app.use(ins);app.get('/tick',function(req,res){res.send('Current date: '+newDate());});// Trigger a reload of the page every 10 seconds:setInterval(function(){ins.reload('/tick');},10000);
The text was updated successfully, but these errors were encountered:
I can do
ins.reload()
no problem if I initialisedins
with no params (i.e.ins = instant()
) but if I pass a root folder to instant (i.e.ins = instant("/some/folder")
) then theins.reload
is undefined.The text was updated successfully, but these errors were encountered: