poc-websocket-pgp-json/config.js

13 lines
349 B
JavaScript
Raw Normal View History

2021-01-01 12:40:42 +01:00
"use strict"
const SRV = document.location.host
2021-01-03 10:59:27 +01:00
// As we expect that the public keys are fetched on a secure connection,
// http should only be concidered if tunneled by ssh or something like
// this.
2021-01-01 12:40:42 +01:00
const FETCH_PROTOCOL = "http"
2021-01-03 10:59:27 +01:00
// Must match the value in server.py
const ADMIN_ACCESS = 100
2021-01-08 19:26:38 +01:00
const formNames = ["text_field_form", "other_form"]