mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
horde multiselect without CTRL
This commit is contained in:
@ -121,7 +121,7 @@ waitForElement("#floatingPrompt", 10000).then(function () {
|
||||
});
|
||||
|
||||
// Device detection
|
||||
const deviceInfo = await getDeviceInfo();
|
||||
export const deviceInfo = await getDeviceInfo();
|
||||
|
||||
async function getDeviceInfo() {
|
||||
try {
|
||||
@ -135,7 +135,7 @@ async function getDeviceInfo() {
|
||||
}
|
||||
}
|
||||
|
||||
function isMobile() {
|
||||
export function isMobile() {
|
||||
const mobileTypes = ['smartphone', 'tablet', 'phablet', 'feature phone', 'portable media player'];
|
||||
return mobileTypes.includes(deviceInfo?.device?.type);
|
||||
}
|
||||
@ -337,15 +337,6 @@ export async function favsToHotswap() {
|
||||
}
|
||||
}
|
||||
|
||||
/* function RestoreNavTab() {
|
||||
if ($('#rm_button_selected_ch').children("h2").text() !== '') {
|
||||
|
||||
$(SelectedNavTab).click();
|
||||
} else {
|
||||
setTimeout(RestoreNavTab, 100);
|
||||
}
|
||||
} */
|
||||
|
||||
//changes input bar and send button display depending on connection status
|
||||
function RA_checkOnlineStatus() {
|
||||
if (online_status == "no_connection") {
|
||||
|
Reference in New Issue
Block a user