Skip to content

Commit 6481b8d

Browse files
committed
turn on Node for app://
1 parent 9c696de commit 6481b8d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/renderer/shell_content_renderer_client.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// Copyright (c) 2012 Intel Corp
22
// Copyright (c) 2012 The Chromium Authors
3-
//
4-
// Permission is hereby granted, free of charge, to any person obtaining a copy
3+
//
4+
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal
66
// in the Software without restriction, including without limitation the rights
77
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell co
88
// pies of the Software, and to permit persons to whom the Software is furnished
99
// to do so, subject to the following conditions:
10-
//
10+
//
1111
// The above copyright notice and this permission notice shall be included in al
1212
// l copies or substantial portions of the Software.
13-
//
13+
//
1414
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IM
1515
// PLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNES
1616
// S FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
@@ -199,7 +199,7 @@ bool ShellContentRendererClient::goodForNode(WebKit::WebFrame* frame)
199199
bool use_node =
200200
CommandLine::ForCurrentProcess()->HasSwitch(switches::kNodejs) &&
201201
!frame->isNwDisabledChildFrame() &&
202-
(force_on || url.SchemeIsFile() || is_nw_protocol);
202+
(force_on || url.SchemeIsFile() || is_nw_protocol || url.SchemeIs("app"));
203203
return use_node;
204204
}
205205

0 commit comments

Comments
 (0)