Skip to content

Instantly share code, notes, and snippets.

@usergenic
Created January 11, 2018 23:11
Show Gist options
  • Save usergenic/9baf88a24dcbc77bc808339755a7d436 to your computer and use it in GitHub Desktop.
Save usergenic/9baf88a24dcbc77bc808339755a7d436 to your computer and use it in GitHub Desktop.
Workaround for LastPass's clobbering of createElement
<script>
document.createElement = Document.prototype.createElement;
</script>
<html>
<head>
<!-- ce-fix must be the first html import encountered -->
<link rel="ce-fix.html">
<link rel="src/my-app.html">
</head>
<body>
<my-app></my-app>
</body>
</html>
Copy link

ghost commented Jan 18, 2018

where is the pathway for this on hass.io?

@lpellegr
Copy link

@usergenic Unfortunately, this workaround seems not working on Firefox with LastPass plugin version 4.71 (I checked that ce-fix.html is the first import).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment