diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-02-27 07:23:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 12:23:42 +0000 |
commit | e47a0f488f3d9bbcb76ebcf4f5afe203c1ee06c0 (patch) | |
tree | 35a4a7411dd3154b19316b330c4976f291f021d2 /ext/js/comm/frame-client.js | |
parent | e74fadc5a411e907da088729ea13e23e6f5aa58d (diff) |
Object utilities (#729)
* Create utilities
* Rename old isObject
* Use new isObject
* Remove old function
* Add additional function
* Simplify for now
* Rename function for clarity
* Rename function
* Expand type
* Update eslint
Diffstat (limited to 'ext/js/comm/frame-client.js')
-rw-r--r-- | ext/js/comm/frame-client.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/js/comm/frame-client.js b/ext/js/comm/frame-client.js index 3a41ab0f..a30efa29 100644 --- a/ext/js/comm/frame-client.js +++ b/ext/js/comm/frame-client.js @@ -16,7 +16,8 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import {deferPromise, generateId, isObject} from '../core/utilities.js'; +import {isObjectNotArray} from '../core/object-utilities.js'; +import {deferPromise, generateId} from '../core/utilities.js'; export class FrameClient { constructor() { @@ -121,9 +122,9 @@ export class FrameClient { */ const onMessageInner = async (message) => { try { - if (!isObject(message)) { return; } + if (!isObjectNotArray(message)) { return; } const {action, params} = message; - if (!isObject(params)) { return; } + if (!isObjectNotArray(params)) { return; } await frameLoadedPromise; if (timer === null) { return; } // Done |