Reading in the pointer should process in array format
This commit is contained in:
parent
1e8cae5115
commit
53b6ca73c8
1 changed files with 6 additions and 4 deletions
|
@ -46,14 +46,16 @@ class pointer {
|
|||
@param {string} name the property to read
|
||||
*/
|
||||
static async read(name) {
|
||||
let RETURN = ((name)
|
||||
? (!(name.trim().includes(`URL`))
|
||||
let NAME = (Array.isArray(name)) ? name : ((name) ? name.trim().split(`,`) : null);
|
||||
|
||||
let RETURN = ((NAME)
|
||||
? (!(NAME[0].includes(`URL`))
|
||||
? await global.read([`last`])
|
||||
: true)
|
||||
: false)
|
||||
? global.read((name.trim().includes(`URL`))
|
||||
? global.read((NAME[0].includes(`URL`))
|
||||
? [`last`]
|
||||
: [`sites`, await global.read([`last`]), ...((Array.isArray(name)) ? name : name.trim().split(`,`))])
|
||||
: [`sites`, await global.read([`last`]), ...NAME])
|
||||
: null;
|
||||
return(RETURN);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue