Use a variable (server_url) instead of document.documentURI

This commit is contained in:
2017-04-17 20:37:26 +02:00
parent b4b54ec57c
commit a180cb62d7
2 changed files with 15 additions and 12 deletions

View File

@@ -20,7 +20,9 @@
var default_preferences = {"pbkdf2_level": 1000,
"account_url": "https://gpass-demo.soutade.fr/demo"};
var browser = browser || chrome;
var browser = browser;
if (typeof chrome !== 'undefined')
browser = chrome;
var crypto = crypto || window.crypto;
// https://stackoverflow.com/questions/6965107/converting-between-strings-and-arraybuffers