if (window.msCrypto) {
      try {
        Object.freeze(window.msCrypto);
      } catch (e) {
        console.error(e);