If our frame content doesnt exist, treat it as frame not found

This commit is contained in:
2024-12-09 16:12:49 +11:00
parent 41940a0a70
commit 8ca782e996
3 changed files with 14 additions and 4 deletions

View File

@@ -43,3 +43,7 @@ if (p.get(po)) {
} else {
writeln('Failed to load:'+argv[0]);
}
writeln('----');
for (var x in p.raw)
writeln(x+':'+JSON.stringify(p.raw[x])+"\r\n");

View File

@@ -27,6 +27,9 @@ p.get(po);
var SESSION_EXT = 'vtx';
require('ansitex/load/session/viewdata.js','SESSION_VIEWDATA');
p.raw = p.file_content(FRAMES_HOME+SESSION_EXT+'/'+po.toString()+'.'+CONTENT_EXT);
var vtx = p.file_content(FRAMES_HOME+SESSION_EXT+'/'+po.toString()+'.'+CONTENT_EXT);
if (vtx !== undefined)
p.raw = vtx;
p.save();