Skip to content

Commit

Permalink
fix(client.html): always open debug.html in a new browser process
Browse files Browse the repository at this point in the history
Chrome reuses a single process for tabs opened by clicking links. This means that if I use debugger in debug.html it will
block the regular karma tab which will make karma think that the connection was lost.

By forcing the debug.html to be opened in a new process the original chrome tab will be unaffected while debugging with
debug.html.

Info about the rel attribute: http://blog.chromium.org/2009/12/links-that-open-in-new-processes.html
  • Loading branch information
IgorMinar committed Oct 7, 2014
1 parent 9d17ed0 commit d176bcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/client.html
Expand Up @@ -102,7 +102,7 @@
</head>
<body>
<div id="banner" class="offline">
<a href="debug.html%X_UA_COMPATIBLE_URL%" target="_blank" class="btn-debug">DEBUG</a>
<a href="debug.html%X_UA_COMPATIBLE_URL%" target="_blank" rel="noreferrer" class="btn-debug">DEBUG</a>
<h1 id="title">Karma - starting</h1>
</div>

Expand Down

0 comments on commit d176bcf

Please sign in to comment.