mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #1195 from cmgustavo/feature/remove-unsupported
Check if browser support localStorage
This commit is contained in:
commit
0a8fe334f8
|
@ -82,7 +82,7 @@ angular
|
|||
.run(function($rootScope, $location, $idle) {
|
||||
$idle.watch();
|
||||
$rootScope.$on('$routeChangeStart', function(event, next, current) {
|
||||
if (!util.supports.data) {
|
||||
if (!localStorage || localStorage.length < 1) {
|
||||
$location.path('unsupported');
|
||||
} else {
|
||||
if ((!$rootScope.wallet || !$rootScope.wallet.id) && next.validate) {
|
||||
|
|
|
@ -5,14 +5,14 @@
|
|||
</div>
|
||||
<h1 class="text-center text-white">Browser unsupported</h1>
|
||||
<h3 class="text-center text-white">
|
||||
Copay uses webRTC for peer-to-peer communications,
|
||||
Copay uses WebStorage to save wallet data,
|
||||
but your browser does not support it.
|
||||
Please use
|
||||
a current version of Google Chrome, Mozilla Firefox, or Opera.
|
||||
a current version of Internet Explorer, Safari, Google Chrome, Mozilla Firefox, or Opera.
|
||||
<br><br>
|
||||
|
||||
For more information
|
||||
on supported browsers please check <a href="http://www.webrtc.org/">http://www.webrtc.org/</a>
|
||||
Check if your browser support WebStorage <a
|
||||
href="http://caniuse.com/#feat=namevalue-storage" target="_blank">here</a>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue