Skip to content

Commit

Permalink
fix: Actually fixing window issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jlacivita committed Jul 27, 2023
1 parent 0812ae0 commit 91fa4d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

const win = typeof win !== 'undefined' ? window : this
const win = typeof window !== 'undefined' ? window : this

export default class LegacyTransport {
constructor (bridge) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/


const win = typeof win !== 'undefined' ? window : this
const win = typeof window !== 'undefined' ? window : this

let listener
export const setMockListener = func => { listener = func }
Expand Down
2 changes: 1 addition & 1 deletion languages/javascript/src/shared/Transport/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let moduleInstance = null

const isEventSuccess = x => x && (typeof x.event === 'string') && (typeof x.listening === 'boolean')

const win = typeof win !== 'undefined' ? window : this
const win = typeof window !== 'undefined' ? window : this

export default class Transport {
constructor () {
Expand Down

0 comments on commit 91fa4d0

Please sign in to comment.