mtierltd / timetracker

GNU Affero General Public License v3.0
82 stars 27 forks source link

Hidden error when pushing "Start"-button #169

Closed michael-markl closed 2 years ago

michael-markl commented 2 years ago

I get the following console error when I push the "Start"-button on the Timer page. The UI does not react to me pushing the button. This happens only if I navigate directly to https://my-nextcloud.com/apps/timetracker (e.g. via bookmark).

Edit: It only seems to happen, if you don't have a trailing slash. On https://my-nextcloud.com/apps/timetracker/ it does work.


timer.js:1 

       Uncaught TypeError: Cannot use 'in' operator to search for 'Error' in <!DOCTYPE html>
<html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en_150" >
    <head data-user="Michael" data-user-displayname="Michael" data-requesttoken="{hidden}">
        <meta charset="utf-8">
        <title>
            Dashboard - Markl-Cloud     </title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
         {... hidden html stuff}
</html>

    at Object.<anonymous> (timer.js:1:1)
    at l (timer.js:1:1)
    at Object.fireWith [as resolveWith] (timer.js:1:1)
    at L (timer.js:1:1)
    at XMLHttpRequest.<anonymous> (timer.js:1:1)
(anonymous) @ timer.js:1
l @ timer.js:1
fireWith @ timer.js:1
L @ timer.js:1
(anonymous) @ timer.js:1
load (async)
send @ timer.js:1
ajax @ timer.js:1
e.ajax @ timer.js:1
w.each.w.<computed> @ timer.js:1
_ @ timer.js:1
(anonymous) @ timer.js:1
dispatch @ timer.js:1
_.handle @ timer.js:1