File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,13 @@ std::unique_ptr<base::DictionaryValue> MergeManifest() {
152
152
// merge with default `window` manifest in package.json if exists
153
153
nw::Package* pkg = nw::package ();
154
154
if (pkg) {
155
+ std::string js_doc_start, js_doc_end;
156
+ pkg->root ()->GetString (::switches::kmInjectJSDocStart, &js_doc_start);
157
+ if (!js_doc_start.empty ())
158
+ manifest->SetString (::switches::kmInjectJSDocStart, js_doc_start);
159
+ pkg->root ()->GetString (::switches::kmInjectJSDocEnd, &js_doc_end);
160
+ if (!js_doc_end.empty ())
161
+ manifest->SetString (::switches::kmInjectJSDocEnd, js_doc_end);
155
162
base::DictionaryValue* manifest_window = pkg->window ();
156
163
if (manifest_window) {
157
164
std::unique_ptr<base::DictionaryValue> manifest_window_cloned = manifest_window->DeepCopyWithoutEmptyChildren ();
You can’t perform that action at this time.
0 commit comments