Changed qu's HTML element detection. Passing base actor instead of actorName to profile scrapers.
This commit is contained in:
@@ -326,9 +326,9 @@ function init(element, window) {
|
||||
const quContextFuncs = Object.entries(quFuncs) // dynamically attach methods with context
|
||||
.reduce((acc, [key, func]) => ({
|
||||
...acc,
|
||||
[key]: (...args) => (args[0] instanceof globalWindow.HTMLElement // allow for different context
|
||||
? func(...args)
|
||||
: func(element, ...args)),
|
||||
[key]: (...args) => (args[0].nodeType === undefined // allow for different context
|
||||
? func(element, ...args)
|
||||
: func(...args)),
|
||||
}), {});
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user