feat: support revert changes (#1782)

This commit is contained in:
Himself65
2023-04-02 16:28:45 -05:00
committed by GitHub
parent e0eecffb2f
commit 95879cc1d0
5 changed files with 65 additions and 23 deletions
+3
View File
@@ -1,3 +1,4 @@
import { DebugLogger } from '@affine/debug';
import { config } from '@affine/env';
import {
createUserApis,
@@ -30,6 +31,8 @@ const affineApis = {} as ReturnType<typeof createUserApis> &
Object.assign(affineApis, createUserApis(prefixUrl));
Object.assign(affineApis, createWorkspaceApis(prefixUrl));
const debugLogger = new DebugLogger('affine-debug-apis');
if (!globalThis.AFFINE_APIS) {
globalThis.AFFINE_APIS = affineApis;
globalThis.setLogin = (response: LoginResponse) => {