Commit b11f5f7b authored by echicken's avatar echicken
Browse files

Use js.on_exit to restore console attrs & bbs.sys_status

parent 94a5ef4a
......@@ -5,8 +5,9 @@ load('frame.js');
load('tree.js');
const fidoaddr = load({}, 'fidoaddr.js');
const con_attr = console.attributes;
const sys_status = bbs.sys_status;
js.on_exit('console.attributes = ' + console.attributes);
js.on_exit('bbs.sys_status = ' + bbs.sys_status);
bbs.sys_status|=SS_MOFF;
const addrs = {};
......@@ -81,6 +82,3 @@ while (!js.terminated) {
}
frame.close();
console.attributes = con_attr;
bbs.sys_status = sys_status;
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment