mirror of https://github.com/mifi/lossless-cut
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
431 B
JavaScript
14 lines
431 B
JavaScript
import axios from 'axios';
|
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
export async function loadMifiLink() {
|
|
try {
|
|
// In old versions: https://mifi.no/losslesscut/config.json
|
|
const resp = await axios.get('https://losslesscut.mifi.no/config.json');
|
|
// const resp = await axios.get('http://localhost:8080/losslesscut/config-dev.json');
|
|
return resp.data;
|
|
} catch (err) {
|
|
return undefined;
|
|
}
|
|
}
|