Commit 534c61e2 authored by Sean Hammond's avatar Sean Hammond Committed by GitHub

Merge pull request #278 from hypothesis/fix-on-pages-that-define-self

Fix client failing to load on pages that define `self`
parents d99b094f 362b4edf
...@@ -94,9 +94,11 @@ module.exports = function createBundle(config, buildOpts) { ...@@ -94,9 +94,11 @@ module.exports = function createBundle(config, buildOpts) {
// the `global`, `self` and `window` globals in that order. // the `global`, `self` and `window` globals in that order.
// //
// This can break on web pages which provide their own definition of // This can break on web pages which provide their own definition of
// `global`. See https://github.com/hypothesis/h/issues/2723 // `global` or `self` that is not an alias for `window`. See
// https://github.com/hypothesis/h/issues/2723 and
// https://github.com/hypothesis/client/issues/277
global: function () { global: function () {
return 'typeof self !== "undefined" ? self : window'; return 'window';
}, },
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment