on master help sign in
Do not set styles in Elm.fullscreen
commit9273b27c06c11736b4f0afb0e1ce17e5607a9313 authorEvan Czaplicki <info@elm-lang.org> dateTue 4 Nov 2014, 17:06 (12 years ago) parentda4d613
1 file changed−5
runtime/core.js−5
runtime/core.js−5
@@ -6,11 +6,6 @@ var Display = { FULLSCREEN: 0, COMPONENT: 1, NONE: 2 };
66
77
88Elm.fullscreen = function(module, ports) {
9− var style = document.createElement('style');
10− style.type = 'text/css';
11− style.innerHTML = "html,head,body { padding:0; margin:0; }" +
12− "body { font-family: calibri, helvetica, arial, sans-serif; }";
13− document.head.appendChild(style);
149 var container = document.createElement('div');
1510 document.body.appendChild(container);
1611 return init(Display.FULLSCREEN, container, module, ports || {});