From b759470ed5b58ec2819ca2754f9ab89435985691 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Fri, 19 Jul 2024 18:58:20 +0200 Subject: [PATCH] Add the possibility to delete a model (bug 1908939) --- web/firefoxcom.js | 4 ++++ web/genericcom.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/web/firefoxcom.js b/web/firefoxcom.js index afa2b69fc854a..8f84d6b9f5c04 100644 --- a/web/firefoxcom.js +++ b/web/firefoxcom.js @@ -320,6 +320,10 @@ class MLManager { return !!(await this.#enabled?.get(name)); } + deleteModel(service) { + return FirefoxCom.requestAsync("mlDelete", service); + } + guess(data) { return FirefoxCom.requestAsync("mlGuess", data); } diff --git a/web/genericcom.js b/web/genericcom.js index 9c646099ef58c..0e224dc247508 100644 --- a/web/genericcom.js +++ b/web/genericcom.js @@ -52,6 +52,10 @@ class MLManager { return false; } + async deleteModel(_service) { + return null; + } + async guess() { return null; }