first commit
This commit is contained in:
25
lim-ts-sdk-master/lim-ts-sdk/src/lim.ts
Normal file
25
lim-ts-sdk-master/lim-ts-sdk/src/lim.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { imClient } from "./lim/core/ImClient";
|
||||
|
||||
// if(typeof window !== 'undefined'){
|
||||
// console.log("window");
|
||||
|
||||
// }
|
||||
// if(typeof global !== 'undefined'){
|
||||
// console.log("global");
|
||||
|
||||
// }
|
||||
// @ts-ignore
|
||||
if (typeof uni !== 'undefined') {
|
||||
// console.log("uni");
|
||||
// @ts-ignore
|
||||
uni['im'] = imClient;
|
||||
// @ts-ignore
|
||||
// uni['im_webtoolkit'] = WebToolkit;
|
||||
}
|
||||
|
||||
export {
|
||||
imClient as im
|
||||
// Logger as log,
|
||||
// WebToolkit as webtoolkit,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user