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

Commit

Permalink
Migrating URLs and updating templates for ETC
Browse files Browse the repository at this point in the history
  • Loading branch information
gravity committed Aug 1, 2016
1 parent 2f56d7c commit 7b896e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ script:

notifications:
email:
- mist@ethereum.org
- mist@ethereumclassic.org

14 changes: 3 additions & 11 deletions interface/client/appStart.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@


// STOP here if not MAIN WINDOW
if(location.hash)
return;


// set browser as default tab
if(!LocalStore.get('selectedTab'))
LocalStore.set('selectedTab', 'wallet');

/**
The init function of Mist
@method mistInit
*/
mistInit = function(){
console.info('Initialise Mist');


Tabs.onceSynced.then(function() {
if (0 <= location.search.indexOf('reset-tabs')) {
console.info('Resetting UI tabs');

Tabs.remove({});
}

Expand All @@ -30,19 +24,18 @@ mistInit = function(){

Tabs.insert({
_id: 'browser',
url: 'https://ethereum.org',
url: 'https://ethereumclassic.org',
position: 0
});
}


Tabs.upsert({_id: 'wallet'}, {
url: 'https://wallet.ethereum.org',
position: 1,
permissions: {
admin: true
}
});
});
})
.then(function() {
window.trigger('mist-ready');
Expand All @@ -61,12 +54,11 @@ Meteor.startup(function(){
console.debug('Setting language');

// SET default language
if(Cookie.get('TAPi18next')) {
if(Cookie.get('TAPi18next')) {
TAPi18n.setLanguage(Cookie.get('TAPi18next'));
} else {
var userLang = navigator.language || navigator.userLanguage,
availLang = TAPi18n.getLanguages();

// set default language
if (_.isObject(availLang) && availLang[userLang]) {
TAPi18n.setLanguage(userLang);
Expand Down
2 changes: 1 addition & 1 deletion interface/client/lib/helpers/templateHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Return the friendly app name.
@method (appName)
**/
Template.registerHelper('appName', function(){
return window.mist.mode === 'mist' ? 'Mist' : 'Ethereum Wallet';
return window.mist.mode === 'mist' ? 'Mist' : 'Ethereum Classic Wallet';
});

/**
Expand Down

0 comments on commit 7b896e5

Please sign in to comment.