From 0936c6e04c243cd2a404490f7454f1d2a0f69c46 Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Sun, 17 May 2020 21:33:39 -0700 Subject: [PATCH] use .getPubKeyForUrl() to set up window.tokenlessFileServerAdnAPI --- js/expire.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/expire.js b/js/expire.js index 228508caf..0d4750c3b 100644 --- a/js/expire.js +++ b/js/expire.js @@ -1,4 +1,4 @@ -/* global LokiAppDotNetServerAPI, LokiFileServerAPI, semver, log */ +/* global LokiAppDotNetServerAPI, semver, log */ // eslint-disable-next-line func-names (function() { 'use strict'; @@ -12,9 +12,8 @@ ); // use the anonymous access token window.tokenlessFileServerAdnAPI.token = 'loki'; - window.tokenlessFileServerAdnAPI.pubKey = window.Signal.Crypto.base64ToArrayBuffer( - LokiFileServerAPI.secureRpcPubKey - ); + // configure for file server comms + window.tokenlessFileServerAdnAPI.getPubKeyForUrl(); let nextWaitSeconds = 5; const checkForUpgrades = async () => {