diff --git a/dapp/controllers/footerCtrl.js b/dapp/controllers/footerCtrl.js new file mode 100644 index 00000000..05f2c7f9 --- /dev/null +++ b/dapp/controllers/footerCtrl.js @@ -0,0 +1,26 @@ +( + function () { + angular + .module('multiSigWeb') + .controller('footerCtrl', function ($scope) { + $scope.navCollapsed = true; + $scope.isElectron = isElectron; + console.log(isElectron, shell) + + + // electron show terms and policy + $scope.openTerms = function() { + shell.openExternal('https://wallet.gnosis.pm/TermsofUseMultisig.pdf'); + } + + $scope.openPolicy = function () { + shell.openExternal('https://gnosis.pm/assets/pdf/PrivacyPolicyGnosisLtd.pdf'); + } + + $scope.openImprint = function () { + shell.openExternal('https://wallet.gnosis.pm/imprint.html'); + } + + }); + } +)(); \ No newline at end of file diff --git a/dapp/controllers/navCtrl.js b/dapp/controllers/navCtrl.js index 5a53f14c..29793fc8 100644 --- a/dapp/controllers/navCtrl.js +++ b/dapp/controllers/navCtrl.js @@ -61,6 +61,14 @@ // call web3 selection modal showWeb3SelectionModal(); }; + + $scope.openTerms = function() { + shell.openExternal('https://wallet.gnosis.pm/TermsofUseMultisig.pdf'); + } + + $scope.openPolicy = function () { + shell.openExternal('https://gnosis.pm/assets/pdf/PrivacyPolicyGnosisLtd.pdf'); + } } }); } diff --git a/dapp/index.html b/dapp/index.html index a3538160..b8f72337 100644 --- a/dapp/index.html +++ b/dapp/index.html @@ -52,6 +52,7 @@ var ethereumWallet = require('ethereumjs-wallet'); var hdkeyring = require('eth-hd-keyring'); var encryptor = require('browser-passworder'); + var shell = require('electron').shell; } else { document.write(' +