We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1593573 commit e2d428dCopy full SHA for e2d428d
javascript/ql/lib/semmle/javascript/frameworks/Electron.qll
@@ -46,9 +46,7 @@ module Electron {
46
*/
47
private class BrowserObjectByType extends BrowserObject {
48
BrowserObjectByType() {
49
- exists(string tp | tp = "BrowserWindow" or tp = "BrowserView" |
50
- this.asExpr().getType().hasUnderlyingType("electron", tp)
51
- )
+ this.(DataFlow::SourceNode).hasUnderlyingType("electron", ["BrowserWindow", "BrowserView"])
52
}
53
54
0 commit comments