Use named param in Legacy Platform

This commit is contained in:
RMidhunSuresh 2022-04-21 14:17:47 +05:30
parent 1cdc76f5a4
commit 4f23944581

View file

@ -19,6 +19,6 @@ import {hkdf} from "../../utils/crypto/hkdf";
import {Platform as ModernPlatform} from "./Platform.js"; import {Platform as ModernPlatform} from "./Platform.js";
export function Platform(container, assetPaths, config, options = null) { export function Platform({ container, assetPaths, config, configURL, options = null }) {
return new ModernPlatform(container, assetPaths, config, options, {aesjs, hkdf}); return new ModernPlatform({ container, assetPaths, config, configURL, options, cryptoExtras: { aesjs, hkdf }});
} }