Fix:EReader for ebooks in library folder root

This commit is contained in:
advplyr 2022-12-06 16:21:12 -06:00
parent b860dfc791
commit 592ea7c533
2 changed files with 14 additions and 8 deletions

View file

@ -16,6 +16,9 @@ if (Capacitor.getPlatform() != 'web') {
Vue.prototype.$isDev = process.env.NODE_ENV !== 'production'
Vue.prototype.$encodeUriPath = (path) => {
return path.replace(/\\/g, '/').replace(/%/g, '%25').replace(/#/g, '%23')
}
Vue.prototype.$dateDistanceFromNow = (unixms) => {
if (!unixms) return ''
return formatDistance(unixms, Date.now(), { addSuffix: true })