Remove oauth from gulp and ejs templates

This commit is contained in:
Johannes Zellner
2020-02-07 13:41:10 +01:00
parent ba36f05182
commit 7596881464
4 changed files with 15 additions and 28 deletions

View File

@@ -9,7 +9,7 @@ app.controller('SetupAccountController', ['$scope', '$http', function ($scope, $
// Stupid angular location provider either wants html5 location mode or not, do the query parsing on my own
var search = decodeURIComponent(window.location.search).slice(1).split('&').map(function (item) { return item.indexOf('=') === -1 ? [item, true] : [item.slice(0, item.indexOf('=')), item.slice(item.indexOf('=')+1)]; }).reduce(function (o, k) { o[k[0]] = k[1]; return o; }, {});
var API_ORIGIN = '<%= oauth.apiOrigin %>' || window.location.origin;
var API_ORIGIN = '<%= apiOrigin %>' || window.location.origin;
$scope.busy = false;
$scope.error = null;