const timetrack = require('./timetrack');

module.exports = (pluginContext) => {
    return (projectName, env = {}) => {
        return new Promise((resolve, reject) => {
            try {
            timetrack.loadData();
            timetrack.registerStart(projectName);
            const result = timetrack.save();
            } catch (e) {
                alert('fout: ' + e);
            }
            resolve(result);
        });
    }
}

@@ -168,26 +168,8 @@
 %3E %7B%0A
-            try %7B%0A
     
@@ -297,85 +297,8 @@
 ();%0A
-            %7D catch (e) %7B%0A                alert('fout: ' + e);%0A            %7D%0A
     

Remove debug code