halbot 1995.1.47 → 1995.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/turn.html +7 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "halbot",
|
|
3
3
|
"description": "Just another AI powered Telegram bot, which is simple design, easy to use, extendable and fun.",
|
|
4
|
-
"version": "1995.1.
|
|
4
|
+
"version": "1995.1.49",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/halbot",
|
|
7
7
|
"type": "module",
|
package/web/turn.html
CHANGED
|
@@ -478,6 +478,12 @@
|
|
|
478
478
|
</footer>
|
|
479
479
|
|
|
480
480
|
<script>
|
|
481
|
+
// Register custom languages to suppress warnings
|
|
482
|
+
if (window.hljs) {
|
|
483
|
+
hljs.registerLanguage('think', () => ({ contains: [] }));
|
|
484
|
+
hljs.registerLanguage('tools', () => ({ contains: [] }));
|
|
485
|
+
}
|
|
486
|
+
|
|
481
487
|
// Injected Data
|
|
482
488
|
const chatData = '{{data}}';
|
|
483
489
|
|
|
@@ -491,6 +497,7 @@
|
|
|
491
497
|
// Set Chat ID from data
|
|
492
498
|
if (chatData.chat_id) {
|
|
493
499
|
chatId.textContent = `Chat ID: ${chatData.chat_id}`;
|
|
500
|
+
document.title = `HAL 9000 Chat: ${chatData.chat_id}`;
|
|
494
501
|
} else {
|
|
495
502
|
chatId.textContent = `Chat ID: UNKNOWN`;
|
|
496
503
|
}
|
|
@@ -744,7 +751,6 @@
|
|
|
744
751
|
|
|
745
752
|
window.addEventListener('resize', () => {
|
|
746
753
|
resize();
|
|
747
|
-
initBlobs();
|
|
748
754
|
});
|
|
749
755
|
|
|
750
756
|
resize();
|