don't fail when offline
This commit is contained in:
parent
07cb483f02
commit
2a63f42b02
2 changed files with 5 additions and 7 deletions
10
index.js
10
index.js
|
@ -308,7 +308,7 @@ Ox.load(function() {
|
||||||
size: [
|
size: [
|
||||||
/\{size\.(\w+)\}/g,
|
/\{size\.(\w+)\}/g,
|
||||||
function(match, key) {
|
function(match, key) {
|
||||||
return app.data.downloads ? ' (' + Ox.formatValue(
|
return app.data.downloads.size ? ' (' + Ox.formatValue(
|
||||||
app.data.downloads.size[key], 'B'
|
app.data.downloads.size[key], 'B'
|
||||||
) + ')' : '';
|
) + ')' : '';
|
||||||
}
|
}
|
||||||
|
@ -319,11 +319,9 @@ Ox.load(function() {
|
||||||
var version = app.data.downloads.version,
|
var version = app.data.downloads.version,
|
||||||
current = 'You\'re currently running version '
|
current = 'You\'re currently running version '
|
||||||
+ Ox.VERSION + '.',
|
+ Ox.VERSION + '.',
|
||||||
latest = 'The latest version is ' + version + ' ('
|
latest = version ? 'The latest version is ' + version
|
||||||
+ app.data.downloads.date
|
+ ' (' + app.data.downloads.date.slice(0, 10)
|
||||||
.replace('T', ' ')
|
+ ').' : '';
|
||||||
.replace('Z', ' UTC')
|
|
||||||
+ ').';
|
|
||||||
return version ? latest + (
|
return version ? latest + (
|
||||||
/:\/\/oxjs.org\//.test(window.location.href) ? ''
|
/:\/\/oxjs.org\//.test(window.location.href) ? ''
|
||||||
: version == Ox.VERSION ? ' You\'re up to date.'
|
: version == Ox.VERSION ? ' You\'re up to date.'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<h1><b>OxJS — A JavaScript Library for Web Applications</b></h1>
|
<h1><b>OxJS — A JavaScript Library for Web Applications</b></h1>
|
||||||
|
|
||||||
<p>TL;DR: <b>OxJS</b> is awesome — <a href="https://pan.do/ra#demo">see it in action</a>!</b></p>
|
<p>TL;DR: <b>OxJS</b> is awesome — <a href="https://0xDB.org">see it in action</a>!</b></p>
|
||||||
|
|
||||||
<p><b>OxJS</b> (pronounced oh-ex-jay-ess) is a comprehensive JavaScript library, originally developed for the media archive platform <a href="http://pan.do/ra">pan.do/ra</a>. While it still has bugs, holes, design errors and lots of cruft, some parts of it may already be of interest to a wider audience.</p>
|
<p><b>OxJS</b> (pronounced oh-ex-jay-ess) is a comprehensive JavaScript library, originally developed for the media archive platform <a href="http://pan.do/ra">pan.do/ra</a>. While it still has bugs, holes, design errors and lots of cruft, some parts of it may already be of interest to a wider audience.</p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue