Skip to content

Commit

Permalink
perf($MultiWindow): use optional chain to avoid error
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymillergh committed Feb 5, 2020
1 parent 3aa0c9a commit fb54364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mixin/multi-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class MultiWindow extends Vue {
}

windowBack (argument?: any): void {
const context = window.opener.$vue
const context = window?.opener?.$vue
const callback = this.$data.$multiWindowOptions.callback
const delayClosingWindow = this.$data.$multiWindowOptions.delayClosingWindow
if (!context) {
Expand Down

0 comments on commit fb54364

Please sign in to comment.