Cleanup
This commit is contained in:
parent
d7416c16ce
commit
86db83bb66
3 changed files with 9 additions and 8 deletions
|
@ -30,9 +30,6 @@ EndProject
|
|||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "modules", "modules", "{75ED3C1E-D3C7-4546-9F2E-AC85859DDF4B}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
modules\AiClassifier.js = modules\AiClassifier.js
|
||||
modules\ExpressionSearchFilter.jsm = modules\ExpressionSearchFilter.jsm
|
||||
modules\logger.jsm = modules\logger.jsm
|
||||
modules\messageUtils.jsm = modules\messageUtils.jsm
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_locales", "_locales", "{D446E5C6-BDDE-4091-BD1A-EC57170003CF}"
|
||||
|
|
|
@ -21,6 +21,7 @@ let processing = false;
|
|||
let iconTimer = null;
|
||||
let timingStats = { count: 0, mean: 0, m2: 0, total: 0, last: -1 };
|
||||
let currentStart = 0;
|
||||
let logGetTiming = true;
|
||||
|
||||
function setIcon(path) {
|
||||
if (browser.browserAction) {
|
||||
|
@ -321,12 +322,15 @@ async function clearCacheForMessages(idsInput) {
|
|||
|
||||
// Listen for messages from UI/devtools
|
||||
browser.runtime.onMessage.addListener(async (msg) => {
|
||||
logger.aiLog("onMessage received", {debug: true}, msg);
|
||||
if ((msg?.type === "sortana:getTiming" && logGetTiming) || (msg?.type !== "sortana:getTiming")) {
|
||||
logGetTiming = false;
|
||||
logger.aiLog("onMessage received", { debug: true }, msg);
|
||||
}
|
||||
|
||||
if (msg?.type === "aiFilter:test") {
|
||||
if (msg?.type === "sortana:test") {
|
||||
const { text = "", criterion = "" } = msg;
|
||||
logger.aiLog("aiFilter:test – text", {debug: true}, text);
|
||||
logger.aiLog("aiFilter:test – criterion", {debug: true}, criterion);
|
||||
logger.aiLog("sortana:test – text", {debug: true}, text);
|
||||
logger.aiLog("sortana:test – criterion", {debug: true}, criterion);
|
||||
|
||||
try {
|
||||
logger.aiLog("Calling AiClassifier.classifyText()", {debug: true});
|
||||
|
|
|
@ -26,7 +26,7 @@ if (-not $version) {
|
|||
}
|
||||
|
||||
# 4) Define output names & clean up
|
||||
$xpiName = "ai-filter-$version.xpi"
|
||||
$xpiName = "sortana-$version.xpi"
|
||||
$zipPath = Join-Path $ReleaseDir "ai-filter-$version.zip"
|
||||
$xpiPath = Join-Path $ReleaseDir $xpiName
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue