mirror of
https://github.com/ragestudio/vessel.git
synced 2025-06-09 10:34:18 +00:00
remove buffer polify
This commit is contained in:
parent
4dc03bfa82
commit
61414a14d2
@ -1,10 +1,6 @@
|
|||||||
// Patch global prototypes
|
// Patch global prototypes
|
||||||
import { Buffer } from "buffer"
|
|
||||||
|
|
||||||
globalThis.IS_MOBILE_HOST = window.navigator.userAgent === "capacitor"
|
globalThis.IS_MOBILE_HOST = window.navigator.userAgent === "capacitor"
|
||||||
|
|
||||||
window.Buffer = Buffer
|
|
||||||
|
|
||||||
Array.prototype.findAndUpdateObject = function (discriminator, obj) {
|
Array.prototype.findAndUpdateObject = function (discriminator, obj) {
|
||||||
let index = this.findIndex(
|
let index = this.findIndex(
|
||||||
(item) => item[discriminator] === obj[discriminator],
|
(item) => item[discriminator] === obj[discriminator],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user