2019-08-26 23:31:17 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
2019-09-06 19:54:39 +02:00
|
|
|
<!-- HEAD_REPLACEMENT_TOKEN -->
|
2019-08-26 23:31:17 +02:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="app"></div>
|
2019-09-04 23:43:37 +02:00
|
|
|
<script>
|
|
|
|
window.i18n_messages = {};
|
|
|
|
|
|
|
|
function loadUi () {
|
|
|
|
const script = document.createElement('script');
|
|
|
|
script.setAttribute('src', '/ui.js');
|
|
|
|
document.body.appendChild(script);
|
|
|
|
}
|
|
|
|
|
|
|
|
let lang;
|
|
|
|
try {
|
|
|
|
lang = window.localStorage.getItem('language') || 'en';
|
|
|
|
} catch {
|
|
|
|
lang = 'en';
|
|
|
|
}
|
|
|
|
if (lang && lang != 'en') {
|
|
|
|
fetch('https://lbry.com/i18n/get/lbry-desktop/app-strings/' + lang + '.json')
|
|
|
|
.then(r => r.json())
|
|
|
|
.then(j => { window.i18n_messages[lang] = j; loadUi(); })
|
|
|
|
.catch(loadUi);
|
|
|
|
} else {
|
|
|
|
loadUi();
|
|
|
|
}
|
|
|
|
</script>
|
2019-09-24 16:11:40 +02:00
|
|
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
|
|
<script>
|
|
|
|
(adsbygoogle = window.adsbygoogle || []).push({
|
|
|
|
google_ad_client: "ca-pub-7620985872686147",
|
|
|
|
enable_page_level_ads: true
|
|
|
|
});
|
|
|
|
</script>
|
2019-08-26 23:31:17 +02:00
|
|
|
</body>
|
|
|
|
</html>
|