Files
vega-providers/dist/getBaseUrl.js
himanshu8443 13f71510d5 minify
2025-07-11 19:17:23 +05:30

1 line
673 B
JavaScript

"use strict";var __awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getBaseUrl=void 0;const expireTime=36e5,getBaseUrl=e=>__awaiter(void 0,void 0,void 0,function*(){try{let t="";const n=yield fetch("https://himanshu8443.github.io/providers/modflix.json");return t=(yield n.json())[e].url,t}catch(e){return""}});exports.getBaseUrl=getBaseUrl;