From f9762674f72b177a19e1f9d3233909cc291e5e9c Mon Sep 17 00:00:00 2001 From: Jordan Wages Date: Tue, 17 Jun 2025 01:01:38 -0500 Subject: [PATCH] Fix XML parse warning loading templates --- modules/ExpressionSearchFilter.jsm | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ExpressionSearchFilter.jsm b/modules/ExpressionSearchFilter.jsm index ca4c0fd..3244b92 100644 --- a/modules/ExpressionSearchFilter.jsm +++ b/modules/ExpressionSearchFilter.jsm @@ -123,6 +123,7 @@ function loadTemplate(name) { let url = `resource://aifilter/prompt_templates/${name}.txt`; let xhr = new XMLHttpRequest(); xhr.open("GET", url, false); + xhr.overrideMimeType("text/plain"); xhr.send(); if (xhr.status === 0 || xhr.status === 200) { return xhr.responseText;