Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
feat(.com): redirect from landing page to .com
Browse files Browse the repository at this point in the history
  • Loading branch information
Thore3 committed Jun 18, 2018
1 parent 1cbb1c5 commit db323ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/js/landingCtrl.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
angular.module('walletApp').controller('LandingCtrl', LandingCtrl);

function LandingCtrl ($scope, $http, $state, $sce, languages, Env, walletStats) {
function LandingCtrl ($scope, $http, $state, $sce, languages, Env, walletStats, ComMigration) {
Env.then(env => {
$scope.network = env.network;
$scope.rootURL = env.rootURL;
Expand Down Expand Up @@ -49,4 +49,8 @@ function LandingCtrl ($scope, $http, $state, $sce, languages, Env, walletStats)
$scope.$watch(languages.get, (code) => {
$scope.language = languages.mapCodeToName(code);
});

ComMigration.whenRedirectsEnabled(() => {
ComMigration.redirectFromDotInfoTo('https://blockchain.com/wallet')
})
}

0 comments on commit db323ca

Please sign in to comment.