Two main changes here: - Wait for JS highlight methods to complete, if an error occurs post that error back to Swift. - When creating a highlight with a note, post a message back to Swift to signify success. We wait for that message instead of closing immediately, so that a user doesn't lose their note if creating the highlight failed.
Getting Started
First, run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
Environment Variables
Create a new file in this same dir and name it env.local. Copy the contents of .env.template and paste it in. Fill in your own values for the services you need and the urls you will be deploying to.