13 lines
369 B
TypeScript
13 lines
369 B
TypeScript
import { Platform, StubPlatform } from "@padloc/core/src/platform";
|
|
import { NodeCryptoProvider } from "../crypto/node";
|
|
|
|
export class NodePlatform extends StubPlatform implements Platform {
|
|
crypto = new NodeCryptoProvider();
|
|
|
|
async getDeviceInfo() {
|
|
const info = await super.getDeviceInfo();
|
|
info.runtime = "node";
|
|
return info;
|
|
}
|
|
}
|