From 3f75213ce3446e0171579062e8c9391e0f2630be Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Mon, 25 Jan 2021 21:05:20 +1100 Subject: [PATCH] Small linting fixes --- runtime/js/core/browser.js | 2 +- runtime/js/core/calls.js | 2 +- runtime/js/core/ipc.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/js/core/browser.js b/runtime/js/core/browser.js index ccbe9f28..dd785689 100644 --- a/runtime/js/core/browser.js +++ b/runtime/js/core/browser.js @@ -26,7 +26,7 @@ export function OpenURL(url) { * Opens the given filename using the system's default file handler * * @export - * @param {sting} filename + * @param {string} filename * @returns */ export function OpenFile(filename) { diff --git a/runtime/js/core/calls.js b/runtime/js/core/calls.js index ea3128e8..9919ff80 100644 --- a/runtime/js/core/calls.js +++ b/runtime/js/core/calls.js @@ -62,7 +62,7 @@ if (window.crypto) { export function Call(bindingName, data, timeout) { // Timeout infinite by default - if (timeout == null || timeout == undefined) { + if (timeout == null) { timeout = 0; } diff --git a/runtime/js/core/ipc.js b/runtime/js/core/ipc.js index 1285255a..b453d3ac 100644 --- a/runtime/js/core/ipc.js +++ b/runtime/js/core/ipc.js @@ -45,7 +45,7 @@ function Invoke(message) { * * @export * @param {string} type - * @param {string} payload + * @param {Object} payload * @param {string=} callbackID */ export function SendMessage(type, payload, callbackID) {