Bug 1021481 - Handle app:// protocol for DEBUG=1

...ut port change
move this `{` to end of previous line