mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
better back
This commit is contained in:
parent
1f332ac6dd
commit
9291434ed7
2
gun.js
2
gun.js
@ -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
3
sea.js
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user