mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 11:58:28 +00:00
refactor(core): eleminate global state of guiVersion and deviceId
This commit is contained in:
parent
e34be16237
commit
a4a46f480d
@ -15,11 +15,12 @@ var syncthing = angular.module('syncthing', [
|
||||
]);
|
||||
|
||||
var urlbase = 'rest';
|
||||
var guiVersion = null;
|
||||
var deviceId = null;
|
||||
|
||||
syncthing.config(function ($httpProvider, $translateProvider, LocaleServiceProvider) {
|
||||
$httpProvider.interceptors.push(function xHeadersResponseInterceptor() {
|
||||
var guiVersion = null;
|
||||
var deviceId = null;
|
||||
|
||||
return {
|
||||
response: function onResponse(response) {
|
||||
var headers = response.headers();
|
||||
|
Loading…
x
Reference in New Issue
Block a user