You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
Doesn't do anything useful yet - just demonstrates a framework for how I hope it will fit into the sdk.
14 lines
358 B
JavaScript
14 lines
358 B
JavaScript
var matrixcs = require("./lib/matrix");
|
|
matrixcs.request(require("browser-request"));
|
|
|
|
matrixcs.setCryptoStoreFactory(
|
|
function() {
|
|
return new matrixcs.IndexedDBCryptoStore(
|
|
global.indexedDB, "matrix-js-sdk:crypto"
|
|
);
|
|
}
|
|
);
|
|
|
|
module.exports = matrixcs; // keep export for browserify package deps
|
|
global.matrixcs = matrixcs;
|