Merge branch 'master' into wrong-premod-text

This commit is contained in:
Kim Gardner
2018-01-24 13:45:08 -05:00
committed by GitHub
22 changed files with 473 additions and 755 deletions
+14
View File
@@ -0,0 +1,14 @@
document.addEventListener('DOMContentLoaded', () => {
// Get the auth element and parse it as JSON by decoding it.
const auth = document.getElementById('auth');
const doc = document.implementation.createHTMLDocument('');
doc.body.innerHTML = auth.innerText;
// Set the item in localStorage.
localStorage.setItem('auth', doc.body.textContent);
// Close the window.
setTimeout(() => {
window.close();
}, 50);
});