mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 02:24:17 +00:00
check prototype
This commit is contained in:
parent
9117ca3cb1
commit
18ef646b3b
@ -60,7 +60,7 @@ module.exports = class Controller {
|
||||
this.customHandler = objEndpoint.customHandler
|
||||
}
|
||||
}
|
||||
} else if (typeof endpoint === "function" && typeof endpoint.prototype.constructor === "undefined") {
|
||||
} else if (typeof endpoint === "function" && typeof endpoint.prototype?.constructor === "undefined") {
|
||||
// Handle endpoint transformation as a function
|
||||
const endpointFn = endpoint
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user