Commit be49a3cf authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

fixup! TB 40933: Add tor-launcher functionality

TB 44796: Convert `TorProviders` types to strings.

This allows them to be used in log messages.
parent 8b370f11
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -54,8 +54,8 @@ export class TorBootstrapError extends Error {
}

export const TorProviders = Object.freeze({
  none: 0,
  tor: 1,
  none: "none",
  tor: "tor",
});

/**
@@ -320,7 +320,7 @@ export class TorProviderBuilder {
   * Otherwise, if it is not valid, the C tor implementation is chosen as the
   * default one.
   *
   * @returns {number} An entry from TorProviders
   * @returns {string} An entry from TorProviders
   */
  static get providerType() {
    // TODO: Add a preference to permanently save this without and avoid always