[web] add runner option remove_margin

This commit is contained in:
daniel-j 2016-10-08 14:16:15 +02:00
parent 182678909f
commit 1521e560a1

View file

@ -89,6 +89,13 @@ class web(Runner):
'default': False,
'help': ("Enable this option if you want clicked links to open inside the game window. By default all links open in your default web browser.")
},
{
"option": "remove_margin",
"label": "Remove default <body> margin & padding",
"type": "bool",
"default": False,
'help': ("Sets margin and padding to zero on &lt;html&gt; and &lt;body&gt; elements.")
},
{
"option": "enable_flash",
"label": "Enable Adobe Flash Player",
@ -230,6 +237,9 @@ class web(Runner):
if self.runner_config.get("open_links"):
command.append("--open-links")
if self.runner_config.get("remove_margin"):
command.append("--remove-margin")
if self.runner_config.get("devtools"):
command.append("--devtools")