main.js
/**
   * Retrieve the Files from the file system and send them
   * on the main thread.
   * @param {Outline} outline 
   * @param {string} content  New file contents
   * 
   * @todo need to handle error states
   */
Retrieve the Files from the file system and send them
on the main thread.
@param {Outline} outline
@param {string} content  New file contents

@todo need to handle error states
Retrieve the Files from the file system and send them on the main thread . @param { Outline } outline @param { string } content New file contents @todo need to handle error states
updateActivePage(outline, content) {
    const activeOutineItem = outline.tree.find(i => i.id === outline.activePage);
    const pathToFile = path.join(outline.projectLocation, activeOutineItem.location);
    try {
      savePage(pathToFile, content);
      this.notifySuccessfullActivePageUpdate(outline);
    } catch (error) {
      console.log(error);
    }
  }
updateActivePage ( outline , content ) { const activeOutineItem = outline . tree . find ( i => i . id === outline . activePage ) ; const pathToFile = path . join ( outline . projectLocation , activeOutineItem . location ) ; try { savePage ( pathToFile , content ) ; this . notifySuccessfullActivePageUpdate ( outline ) ; } catch ( error ) { console . log ( error ) ; } }
Retrieve the Files from the file system and send them
 on the main thread.
Retrieve the Files from the file system and send them on the main thread .
// get the active item in the outline tree // load the page contents