diff --git a/com/isoterminal.js b/com/isoterminal.js
index 942703a..b1a48eb 100644
--- a/com/isoterminal.js
+++ b/com/isoterminal.js
@@ -80,7 +80,7 @@ if( typeof AFRAME != 'undefined '){
},
dom: {
- scale: 0.5,
+ scale: 0.66,
events: ['click','keydown'],
html: (me) => `
@@ -97,7 +97,13 @@ if( typeof AFRAME != 'undefined '){
font-family: 'Cousine';
font-style: normal;
font-weight: 400;
- src: url(./assets/Cousine.ttf) format('truetype');
+ src: url(./com/isoterminal/assets/Cousine.ttf) format('truetype');
+ }
+ @font-face {
+ font-family: 'Cousine';
+ font-style: normal;
+ font-weight: 700;
+ src: url(./com/isoterminal/assets/CousineBold.ttf) format('truetype');
}
.isoterminal *{
white-space: pre;
diff --git a/com/isoterminal/feat/autorestore.js b/com/isoterminal/feat/autorestore.js
index d53d92b..db4df13 100644
--- a/com/isoterminal/feat/autorestore.js
+++ b/com/isoterminal/feat/autorestore.js
@@ -11,7 +11,7 @@ ISOTerminal.prototype.autorestore = async function(e){
]).then( () => {
localforage.getItem("state", async (err,stateBase64) => {
- if( !err && confirm('continue last session?') ){
+ if( stateBase64 && !err && confirm('continue last session?') ){
this.noboot = true // see feat/boot.js
state = this.convert.base64ToArrayBuffer( stateBase64 )
this.emulator.restore_state(state)
diff --git a/com/isoterminal/feat/boot.js b/com/isoterminal/feat/boot.js
index ee42e8a..0f48172 100644
--- a/com/isoterminal/feat/boot.js
+++ b/com/isoterminal/feat/boot.js
@@ -7,7 +7,7 @@ ISOTerminal.prototype.boot = async function(e){
let env = ['export BROWSER=1']
for ( let i in document.location ){
if( typeof document.location[i] == 'string' )
- env.push( 'export '+String(i).toUpperCase()+'="'+document.location[i]+'"')
+ env.push( 'export '+String(i).toUpperCase()+'="'+decodeURIComponent( document.location[i]+'"') )
}
await this.emulator.create_file("profile.browser", this.convert.toUint8Array( env.join('\n') ) )