mirror of
https://github.com/EndPwnArchive/endpwn3.2-lambda.git
synced 2024-08-14 23:49:56 +00:00
remove compatability bs
This commit is contained in:
parent
9d937fe0b5
commit
ae26be7772
1 changed files with 0 additions and 4 deletions
|
@ -223,10 +223,6 @@ function evaluate(str, exportsR) {
|
|||
// expose EPAPI as $api, which is what most plugins expect it to be known as
|
||||
window.$api = exports;
|
||||
|
||||
// extension methods used in some older plugins, maintained for compatibility
|
||||
String.prototype.replaceAll = function (search, replacement) { return this.split(search).join(replacement) };
|
||||
Array.prototype.contains = function (s) { return this.indexOf(s) != -1 };
|
||||
|
||||
// derive the date of creation from a discord snowflake id
|
||||
Date.fromSnowflake = (id) => new Date((id / 4194304) + 1420070400000);
|
||||
|
||||
|
|
Loading…
Reference in a new issue