Skip to content

Instantly share code, notes, and snippets.

@phoenixperry
Created September 8, 2017 14:40
Show Gist options
  • Save phoenixperry/da00be0bc3e731b43602a6107c9e74ac to your computer and use it in GitHub Desktop.
Save phoenixperry/da00be0bc3e731b43602a6107c9e74ac to your computer and use it in GitHub Desktop.
window.onbeforeunload = function(e) {
serial.close;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment