Skip to content

Instantly share code, notes, and snippets.

@bryphe
Created November 14, 2017 17:21
Show Gist options
  • Save bryphe/95982b583b28c9d876fd751a73b97443 to your computer and use it in GitHub Desktop.
Save bryphe/95982b583b28c9d876fd751a73b97443 to your computer and use it in GitHub Desktop.
const activate = (oni) => {
...
console.log("config activated")
// Grab the status-bar element, and force it to have a box-shadow
// This is a bit fragile, because it relies on the status-bar being
// available prior to loading the config. In addition, we may
// at some point sandbox the config such that the DOM is not available...
document.body.getElementsByClassName("status-bar")[0].style["box-shadow"] = "none";
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment