1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

pass linter, update ui test

This commit is contained in:
Nick Doiron 2018-01-28 00:20:56 -05:00
parent 9c133aaab3
commit f673c2a8a4
2 changed files with 11 additions and 9 deletions

View File

@ -41,7 +41,7 @@ async function runFirstTimeUsageTest(assert, done) {
// Scroll through terms
const title = app.find('h1').text()
// TODO Find where Metamask is getting added twice in the title
assert.equal(title, 'MetaMaskMetaMask', 'title screen')
assert.equal(title, 'MetaMask', 'title screen')
// enter password
const pwBox = app.find('#password-box')[0]

View File

@ -1,18 +1,20 @@
// cross-browser connection to extension i18n API
var getMessage;
const chrome = chrome || null
const browser = browser || null
let getMessage = null
if ((chrome && chrome.i18n && chrome.i18n.getMessage) ||
(browser && browser.i18n && browser.i18n.getMessage)) {
getMessage = (chrome || browser).i18n.getMessage;
getMessage = (chrome || browser).i18n.getMessage
} else {
// fallback function
console.warn('browser.i18n API not available?');
let msg = require('../app/_locales/en/messages.json');
getMessage = function(key) {
return msg[key].message;
};
console.warn('browser.i18n API not available?')
let msg = require('../app/_locales/en/messages.json')
getMessage = function (key) {
return msg[key].message
}
}
module.exports = getMessage;
module.exports = getMessage