Changed type of injectedScript property to string (#13120)

The injectedScript property should take string value with script code, not the bool flag as in current version
This commit is contained in:
alex-korobko
2016-12-08 15:56:54 -05:00
committed by Andy
parent 5f2450ba80
commit d78bd6ca2f

2
chrome/chrome.d.ts vendored
View File

@@ -1617,7 +1617,7 @@ declare namespace chrome.devtools.inspectedWindow {
/** Optional. When true, the loader will ignore the cache for all inspected page resources loaded before the load event is fired. The effect is similar to pressing Ctrl+Shift+R in the inspected window or within the Developer Tools window. */
ignoreCache?: boolean;
/** Optional. If specified, the script will be injected into every frame of the inspected page immediately upon load, before any of the frame's scripts. The script will not be injected after subsequent reloads—for example, if the user presses Ctrl+R. */
injectedScript?: boolean;
injectedScript?: string;
/**
* Optional.
* If specified, this script evaluates into a function that accepts three string arguments: the source to preprocess, the URL of the source, and a function name if the source is an DOM event handler. The preprocessorerScript function should return a string to be compiled by Chrome in place of the input source. In the case that the source is a DOM event handler, the returned source must compile to a single JS function.