From d78bd6ca2fc0afcf028d20ecdb5dcee29baa78a9 Mon Sep 17 00:00:00 2001 From: alex-korobko Date: Thu, 8 Dec 2016 15:56:54 -0500 Subject: [PATCH] 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 --- chrome/chrome.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/chrome.d.ts b/chrome/chrome.d.ts index dbf6a12446..df1ac8e710 100644 --- a/chrome/chrome.d.ts +++ b/chrome/chrome.d.ts @@ -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.