Wallet/js/controllers/unsupported.js
2014-12-05 11:56:42 -03:00

18 lines
489 B
JavaScript

'use strict';
angular.module('copayApp.controllers').controller('UnsupportedController',
function($scope, $location) {
var localStorage;
if (window.chrome && chrome.runtime && chrome.runtime.id) {
console.log('Is a chrome app!..unssoported.js');
localStorage = chrome.storage.local;
} else {
console.log('Is web!');
localStorage = window.localStorage;
}
if (localStorage && localStorage.length > 0) {
$location.path('/');
}
}
);