mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-06 12:47:57 +01:00
Remove node polyfill
This commit is contained in:
parent
0c8ccf1765
commit
7ca1b2e532
@ -1,10 +0,0 @@
|
|||||||
if (!Array.prototype.findLastIndex) {
|
|
||||||
Array.prototype.findLastIndex = function (callback, thisArg) {
|
|
||||||
for (let i = this.length - 1; i >= 0; i--) {
|
|
||||||
if (callback.call(thisArg, this[i], i, this)) return i;
|
|
||||||
}
|
|
||||||
return -1;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export default () => {};
|
|
@ -1,9 +1,6 @@
|
|||||||
import crypto from 'node:crypto';
|
import crypto from 'node:crypto';
|
||||||
import polyfill from './polyfill.js';
|
|
||||||
import { getConfigValue } from './util.js';
|
import { getConfigValue } from './util.js';
|
||||||
|
|
||||||
polyfill();
|
|
||||||
|
|
||||||
const PROMPT_PLACEHOLDER = getConfigValue('promptPlaceholder', 'Let\'s get started.');
|
const PROMPT_PLACEHOLDER = getConfigValue('promptPlaceholder', 'Let\'s get started.');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user