15 lines
299 B
JavaScript
15 lines
299 B
JavaScript
var baseInfo = (function() {
|
|
function _baseInfo() {
|
|
this.info = JSON.parse($.ajax({url: '/manifest.json', async: false}).responseText);
|
|
}
|
|
|
|
var instance;
|
|
return {
|
|
getInstance: function() {
|
|
if (instance === undefined) {
|
|
instance = new _baseInfo();
|
|
}
|
|
return instance;
|
|
}
|
|
}
|
|
})(); |