Merge pull request #1195 from cmgustavo/feature/remove-unsupported
Check if browser support localStorage
This commit is contained in:
commit
0a8fe334f8
2 changed files with 5 additions and 5 deletions
|
|
@ -82,7 +82,7 @@ angular
|
||||||
.run(function($rootScope, $location, $idle) {
|
.run(function($rootScope, $location, $idle) {
|
||||||
$idle.watch();
|
$idle.watch();
|
||||||
$rootScope.$on('$routeChangeStart', function(event, next, current) {
|
$rootScope.$on('$routeChangeStart', function(event, next, current) {
|
||||||
if (!util.supports.data) {
|
if (!localStorage || localStorage.length < 1) {
|
||||||
$location.path('unsupported');
|
$location.path('unsupported');
|
||||||
} else {
|
} else {
|
||||||
if ((!$rootScope.wallet || !$rootScope.wallet.id) && next.validate) {
|
if ((!$rootScope.wallet || !$rootScope.wallet.id) && next.validate) {
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,14 @@
|
||||||
</div>
|
</div>
|
||||||
<h1 class="text-center text-white">Browser unsupported</h1>
|
<h1 class="text-center text-white">Browser unsupported</h1>
|
||||||
<h3 class="text-center text-white">
|
<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.
|
but your browser does not support it.
|
||||||
Please use
|
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>
|
<br><br>
|
||||||
|
|
||||||
For more information
|
Check if your browser support WebStorage <a
|
||||||
on supported browsers please check <a href="http://www.webrtc.org/">http://www.webrtc.org/</a>
|
href="http://caniuse.com/#feat=namevalue-storage" target="_blank">here</a>
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue