From 8917f746ecd6f070ceaa5c58cc81f0c1860b45f0 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 29 Jul 2019 18:07:17 +0100 Subject: [PATCH] Add todo --- client_src/js/Worker/AIWrapper.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/client_src/js/Worker/AIWrapper.mjs b/client_src/js/Worker/AIWrapper.mjs index ad8b30d..732e740 100644 --- a/client_src/js/Worker/AIWrapper.mjs +++ b/client_src/js/Worker/AIWrapper.mjs @@ -31,6 +31,7 @@ class AIWrapper { for(let gateway of this.index.index) { let net = new brain.NeuralNetwork(); net.fromJSON( + // TODO: Move this to the UI thread & do it only once? await GetFromUrl(`${path.dirname(self.location.href)}/${path.dirname(this.Config.ai_index_file)}/${gateway.filename}`) );