diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/flash/01_http.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/flash/01_http.js b/ext/flash/01_http.js index 72c0cb125..faf740f2e 100644 --- a/ext/flash/01_http.js +++ b/ext/flash/01_http.js @@ -541,7 +541,7 @@ let resp; try { resp = handler(req); - if (resp instanceof Promise || typeof resp.then === "function") { + if (resp instanceof Promise || typeof resp?.then === "function") { resp.then((resp) => handleResponse( req, |