mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
691543ee89
Automatic changes by ESLint, except for manual corrections for .xml files. Differential Revision: https://phabricator.services.mozilla.com/D4439 --HG-- extra : moz-landing-system : lando
24 lines
550 B
HTML
24 lines
550 B
HTML
<html>
|
|
<head>
|
|
<script type="text/javascript">
|
|
var theme = {
|
|
id: "test",
|
|
name: "Test Background",
|
|
headerURL: "http://example.com/firefox/personas/01/header.jpg",
|
|
textcolor: "#fff",
|
|
accentcolor: "#6b6b6b",
|
|
};
|
|
|
|
function setTheme(node) {
|
|
node.setAttribute("data-browsertheme", JSON.stringify(theme));
|
|
var event = document.createEvent("Events");
|
|
event.initEvent("InstallBrowserTheme", true, false);
|
|
node.dispatchEvent(event);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<a id="theme-install" href="#" onclick="setTheme(this)">Install</a>
|
|
</body>
|
|
</html>
|