diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2020-02-02 12:47:57 -0500 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-02-02 12:47:57 -0500 |
commit | e4231a12dc7c85da95bdea7b17bb4d9bca60f12f (patch) | |
tree | d03a0468eaf94102b04f9c49a0691ba77581333e /src/server/DashSession/DashSessionAgent.ts | |
parent | 224731f36c420e45076921db1b5e39f19f775e68 (diff) |
utils
Diffstat (limited to 'src/server/DashSession/DashSessionAgent.ts')
-rw-r--r-- | src/server/DashSession/DashSessionAgent.ts | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/server/DashSession/DashSessionAgent.ts b/src/server/DashSession/DashSessionAgent.ts index 7ecc6ec76..d61e9aac1 100644 --- a/src/server/DashSession/DashSessionAgent.ts +++ b/src/server/DashSession/DashSessionAgent.ts @@ -26,19 +26,6 @@ export class DashSessionAgent extends AppliedSessionAgent { * Installs event hooks, repl commands and additional IPC listeners. */ protected async initializeMonitor(monitor: Monitor): Promise<string> { - // ['log', 'warn'].forEach(function (method) { - // const old = (console as any)[method]; - // (console as any)[method] = function () { - // let stack = new Error("").stack?.split(/\n/); - // // Chrome includes a single "Error" line, FF doesn't. - // if (stack && stack[0].indexOf('Error') === 0) { - // stack = stack.slice(1); - // } - // const message = (stack?.[1] || "Stack undefined!").trim(); - // const args = ([] as any[]).slice.apply(arguments).concat([message]); - // return old.apply(console, args); - // }; - // }); const sessionKey = Utils.GenerateGuid(); await this.dispatchSessionPassword(sessionKey); monitor.addReplCommand("pull", [], () => monitor.exec("git pull")); |