Skip to content

Commit 4106168

Browse files
committed
Properly intercept <a> clicks in --debug mode
Fix elm#12
1 parent 3684492 commit 4106168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elm/Kernel/Debugger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ var _Debugger_document = F4(function(impl, flagDecoder, debugMetadata, args)
106106
__Main_wrapSubs(impl.__$subscriptions),
107107
function(sendToApp, initialModel)
108108
{
109-
var divertHrefToApp = impl.__$setup && impl.__$setup(sendToApp)
109+
var divertHrefToApp = impl.__$setup && impl.__$setup(function(x) { return sendToApp(__Main_UserMsg(x)); });
110110
var view = impl.__$view;
111111
var title = __VirtualDom_doc.title;
112112
var bodyNode = __VirtualDom_doc.body;

0 commit comments

Comments
 (0)