Skip to content

Commit

Permalink
fix: window.self typo
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jul 3, 2022
1 parent 347d5c2 commit 14bc487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function CoCreateWindow(id) {
CoCreateWindow.prototype = {
_checkRoot: function() {
try {
return window.self === window.top;
return window === window.top;
} catch (e) {
return false;
}
Expand Down

0 comments on commit 14bc487

Please sign in to comment.