mirror of
https://github.com/multipleof4/sune.git
synced 2026-02-04 10:08:00 +00:00
This build was committed by a bot.
This commit is contained in:
@@ -792,6 +792,8 @@ $(el.threadPopover).on("click", async (e) => {
|
||||
const tokens = Math.max(0, Math.ceil(totalChars / 4));
|
||||
const k = tokens >= 1e3 ? Math.round(tokens / 1e3) + "k" : String(tokens);
|
||||
alert(tokens + " tokens (" + k + ")");
|
||||
} else if (act === "export") {
|
||||
dl(`thread-${(th.title || "thread").replace(/\W/g, "_")}-${ts()}.json`, { version: 1, threads: [th] });
|
||||
}
|
||||
hideThreadPopover();
|
||||
await THREAD.save();
|
||||
Reference in New Issue
Block a user