better back

This commit is contained in:
Mark Nadal 2018-06-15 23:53:42 -07:00
parent 1f332ac6dd
commit 9291434ed7
2 changed files with 3 additions and 2 deletions

2
gun.js
View File

@ -922,7 +922,7 @@
if(n instanceof Function){
var yes, tmp = {back: at};
while((tmp = tmp.back)
&& !(yes = n(tmp, opt))){}
&& u === (yes = n(tmp, opt))){}
return yes;
}
if(Gun.num.is(n)){

3
sea.js
View File

@ -35,7 +35,7 @@
if(location.protocol.indexOf('s') < 0
&& location.host.indexOf('localhost') < 0
&& location.protocol.indexOf('file:') < 0){
location.protocol = 'https:';
location.protocol = 'https:'; // WebCrypto does NOT work without HTTPS!
}
}
})(USE, './https');
@ -1091,6 +1091,7 @@
}
return user;
}
Gun.User = User;
module.exports = User;
})(USE, './user');