19 lines
No EOL
398 B
JavaScript
19 lines
No EOL
398 B
JavaScript
/*
|
|
check.js
|
|
|
|
Check if a website is supported.
|
|
*/
|
|
|
|
import filters from '/scripts/filters.js';
|
|
|
|
export default class check {
|
|
/*
|
|
Check if an e-commerce platform is supported.
|
|
|
|
@param {string} URL
|
|
@returns {object} the support state
|
|
*/
|
|
static async platform (URL = window.location.href) {
|
|
return (await ((new filters).select(URL)));
|
|
}
|
|
} |