Skip to content

Commit e2d428d

Browse files
committed
JS: Remove use of types in Electron model
1 parent 1593573 commit e2d428d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

javascript/ql/lib/semmle/javascript/frameworks/Electron.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ module Electron {
4646
*/
4747
private class BrowserObjectByType extends BrowserObject {
4848
BrowserObjectByType() {
49-
exists(string tp | tp = "BrowserWindow" or tp = "BrowserView" |
50-
this.asExpr().getType().hasUnderlyingType("electron", tp)
51-
)
49+
this.(DataFlow::SourceNode).hasUnderlyingType("electron", ["BrowserWindow", "BrowserView"])
5250
}
5351
}
5452

0 commit comments

Comments
 (0)