dlidstrom / MinaGlosor

Small website where you can practice on words.
http://minaglosor.se
MIT License
0 stars 0 forks source link

Fixa exceptionHandler cache #136

Closed dlidstrom closed 9 years ago

dlidstrom commented 9 years ago

Det här är fel:

ar cache = {};
            var out = FormatMsg(exception);
            if (cache.hasOwnProperty(out) == false) {
                try {
                    // service locator pattern...
                    var $http = $injector.get('$http');
                    $http.post(
                        apiUrl,
                        {
                            message: out
                        });
                } catch (e) {
                }

                cache[out] = true;
            }