mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
39 lines
682 B
JavaScript
39 lines
682 B
JavaScript
|
|
class ConsolePolyfill {
|
|
constructor() {
|
|
}
|
|
|
|
log(...messageArgs) {
|
|
var string = "";
|
|
for (const arg of messageArgs) {
|
|
string += arg;
|
|
}
|
|
_JsCorePolyfills.consoleLog(string);
|
|
}
|
|
|
|
error(...messageArgs) {
|
|
var string = "";
|
|
for (const arg of messageArgs) {
|
|
string += arg;
|
|
}
|
|
_JsCorePolyfills.consoleLog(string);
|
|
}
|
|
}
|
|
|
|
class PerformancePolyfill {
|
|
constructor() {
|
|
}
|
|
|
|
now() {
|
|
return _JsCorePolyfills.performanceNow();
|
|
}
|
|
}
|
|
|
|
console = new ConsolePolyfill();
|
|
performance = new PerformancePolyfill();
|
|
|
|
self = {
|
|
console: console,
|
|
performance: performance
|
|
};
|