lbry-desktop/web/src/getHomepageJSON.js
zeppi d612b86a8c homepages v2
homepages served without cache

error catching

memo homepagedata

support auto limit

no more config pins
2021-07-14 14:09:46 -04:00

13 lines
314 B
JavaScript

const memo = {};
// this didn't seem to help.
if (!memo.homepageData) {
try {
memo.homepageData = require('../../custom/homepages/v2');
} catch (err) {
console.log('homepage data failed');
}
}
const getHomepageJSON = () => {
return memo.homepageData || {};
};
module.exports = { getHomepageJSON };