Skip to content

Instantly share code, notes, and snippets.

@FlorianRappl
Created February 27, 2020 14:14
Show Gist options
  • Save FlorianRappl/4522c60c35669940a6d7d0f13c81dc48 to your computer and use it in GitHub Desktop.
Save FlorianRappl/4522c60c35669940a6d7d0f13c81dc48 to your computer and use it in GitHub Desktop.
const data = {};
window.getData = name => data[name];
window.setData = (name, value) => (data[name] = value);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment