Skip to content

Commit ae67e8c

Browse files
pmeenanjefflembeck
authored andcommitted
Fix resetting of execution context
For #616
1 parent 5406c38 commit ae67e8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/devtools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ def execute_js(self, script, use_execution_context=False):
12391239

12401240
def set_execution_context(self, target):
12411241
""" Set the js execution context by matching id, origin or name """
1242-
if len(target):
1242+
if target is not None and len(target):
12431243
parts = target.split('=', 1)
12441244
if len(parts) == 2:
12451245
key = parts[0].strip()

0 commit comments

Comments
 (0)