• Separation: I was aiming for something simple, like putting everything in karvonnen.js, adding this to metadata

        {
          "name": "runkarvonnen",
          "url": "karvonnen.js"
        },
    

    and loading it in app.js:

    function swipeHandler(LR,_) {
      if (LR==-1 && karvonnenActive && !isMenuDisplayed) run();
      if (LR==1 && !karvonnenActive && !isMenuDisplayed) require("runkarvonnen").karvonnen();
    }
    

    see attached run.diff.txt

    Bangle.js 1: I have never used the run app, but if wanted I might be able to test later together with https://banglejs.com/apps/?id=sensortool­s as gps provider.


    1 Attachment

  • Thanks! I have done changes like you suggested and it works.

    I used naming like for the modules (run_karvonnen.js and run_karvonnen), should I use the name you suggested instead as this is maybe not a module in the same sense as the ones in the module folder?

    Use the same links as before. I rebased the code on my app loader on the PR to f-teacher:master.

About

Avatar for user140377 @user140377 started