This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// recovery | |
var httpReadOrRetry = function (url, timeout, times) { | |
return http.read(url).then(function (content) { | |
return content; | |
}, function (error) { | |
if (times == 0) | |
return error; | |
return delay(timeout).then(function () { | |
return httpReadOrRetry(url, timeout, times - 1); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// i18n data that get's passed to jed | |
let DEFAULT_I18N_DATA = { | |
messages: { | |
en: { | |
'This is a test': 'This is a test', | |
}, | |
fr: { | |
'This is a test': 'C\'est un test', | |
}, | |
ja: { |