make the filter selection semi-strict
This commit is contained in:
parent
18f949d9bf
commit
309cdd4306
1 changed files with 2 additions and 2 deletions
|
@ -25,12 +25,12 @@ export default class filters {
|
|||
async select(URL = window.location.href) {
|
||||
let SELECTED = await (async () => {
|
||||
// Get the filters.
|
||||
let filter = await search(`filters`, URL, `URL`, false, {"cloud": -1});
|
||||
let filter = await search(`filters`, URL, `URL`, 0.5, {"cloud": -1});
|
||||
|
||||
// If there are filters, then filter the URL.
|
||||
return filter;
|
||||
})();
|
||||
|
||||
|
||||
if ((SELECTED && SELECTED != null && (typeof SELECTED).includes(`obj`)) ? (Object.keys(SELECTED)).length > 0 : false) {
|
||||
this.one = (Object.entries(SELECTED))[0][1];
|
||||
return (this.one);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue