mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 19:07:40 +01:00
Extend getContext API
This commit is contained in:
parent
04dad9a8de
commit
41b6169ea8
@ -1,4 +1,4 @@
|
|||||||
import { humanizedDateTime, favsToHotswap, getMessageTimeStamp, dragElement, isMobile, initRossMods } from './scripts/RossAscends-mods.js';
|
import { humanizedDateTime, favsToHotswap, getMessageTimeStamp, dragElement, isMobile, initRossMods, shouldSendOnEnter } from './scripts/RossAscends-mods.js';
|
||||||
import { userStatsHandler, statMesProcess, initStats } from './scripts/stats.js';
|
import { userStatsHandler, statMesProcess, initStats } from './scripts/stats.js';
|
||||||
import {
|
import {
|
||||||
generateKoboldWithStreaming,
|
generateKoboldWithStreaming,
|
||||||
@ -7419,6 +7419,9 @@ window['SillyTavern'].getContext = function () {
|
|||||||
writeExtensionField: writeExtensionField,
|
writeExtensionField: writeExtensionField,
|
||||||
getThumbnailUrl: getThumbnailUrl,
|
getThumbnailUrl: getThumbnailUrl,
|
||||||
selectCharacterById: selectCharacterById,
|
selectCharacterById: selectCharacterById,
|
||||||
|
messageFormatting: messageFormatting,
|
||||||
|
shouldSendOnEnter: shouldSendOnEnter,
|
||||||
|
isMobile: isMobile,
|
||||||
tags: tags,
|
tags: tags,
|
||||||
tagMap: tag_map,
|
tagMap: tag_map,
|
||||||
menuType: menu_type,
|
menuType: menu_type,
|
||||||
|
@ -126,7 +126,7 @@ export function isMobile() {
|
|||||||
return mobileTypes.includes(parsedUA?.platform?.type);
|
return mobileTypes.includes(parsedUA?.platform?.type);
|
||||||
}
|
}
|
||||||
|
|
||||||
function shouldSendOnEnter() {
|
export function shouldSendOnEnter() {
|
||||||
if (!power_user) {
|
if (!power_user) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user