From 3482263a53803b6e7662e67b39ed97bdd9fcef13 Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Tue, 16 Feb 2016 18:33:01 +0100 Subject: Fixed BeforeUnload Binder Call in ProdMode --- afm-client/app/Frontend/etc/AppConfig.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'afm-client/app/Frontend/etc') diff --git a/afm-client/app/Frontend/etc/AppConfig.js b/afm-client/app/Frontend/etc/AppConfig.js index 1963203..e14dcef 100644 --- a/afm-client/app/Frontend/etc/AppConfig.js +++ b/afm-client/app/Frontend/etc/AppConfig.js @@ -32,10 +32,12 @@ }) // Factory is a singleton and share its context within all instances. - .factory('AppCall', function ($http, AppConfig) { + .factory('AppCall', function ($http, AppConfig, $log) { var myCalls = { get : function(plugin, action, query, callback) { - if (!query.token) query.token = AppConfig.session.token; // add token to provided query + if (!query.token) query.token = AppConfig.session.token; // add token to provided query + $log.log ('AppCall.get /api/' + plugin + '/' + action + '?' + query); + $log.log (callback); $http.get('/api/' + plugin + '/' + action , {params: query}).then (callback, callback); } -- cgit 1.2.3-korg