From: 
Subject: Debian changes

The Debian packaging of node-dialog-polyfill is maintained in git, using a workflow
similar to the one described in dgit-maint-merge(7).
The Debian delta is represented by this one combined patch; there isn't a
patch queue that can be represented as a quilt series.

A detailed breakdown of the changes is available from their canonical
representation -- git commits in the packaging repository.
For example, to see the changes made by the Debian maintainer in the first
upload of upstream version 1.2.3, you could use:

    % git clone https://git.dgit.debian.org/node-dialog-polyfill
    % cd node-dialog-polyfill
    % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'

(If you have dgit, use `dgit clone node-dialog-polyfill`, rather than plain `git clone`.)

We don't use debian/source/options single-debian-patch because it has bugs.
Therefore, NMUs etc. may nevertheless have made additional patches.

---

diff --git a/dist/dialog-polyfill.esm.js b/dist/dialog-polyfill.esm.js
index da774bc..742eb00 100644
--- a/dist/dialog-polyfill.esm.js
+++ b/dist/dialog-polyfill.esm.js
@@ -855,4 +855,4 @@ if (window.HTMLDialogElement === undefined) {
   HTMLFormElement.prototype.submit = replacementFormSubmit;
 }
 
-export default dialogPolyfill;
+export { dialogPolyfill as default };
diff --git a/dist/dialog-polyfill.js b/dist/dialog-polyfill.js
index aee7d96..04efaa7 100644
--- a/dist/dialog-polyfill.js
+++ b/dist/dialog-polyfill.js
@@ -1,8 +1,8 @@
 (function (global, factory) {
   typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
   typeof define === 'function' && define.amd ? define(factory) :
-  (global = global || self, global.dialogPolyfill = factory());
-}(this, function () { 'use strict';
+  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.dialogPolyfill = factory());
+})(this, (function () { 'use strict';
 
   // nb. This is for IE10 and lower _only_.
   var supportCustomEvent = window.CustomEvent;
diff --git a/test.html b/test.html
index b017fe5..6393114 100644
--- a/test.html
+++ b/test.html
@@ -19,9 +19,16 @@
 <script src="node_modules/mocha/mocha.js"></script>
 <script src="node_modules/chai/chai.js"></script>
 <link rel="stylesheet" type="text/css" href="dist/dialog-polyfill.css" />
+<script>
+// Exercise the fallback paths even in browsers with native dialog support.
+if (window.location.search === '?force') {
+  delete window.HTMLDialogElement;
+  delete HTMLElement.prototype.oncancel;
+}
+</script>
 <script type="module">
 
-import dialogPolyfill from './index.js';
+import dialogPolyfill from './dist/dialog-polyfill.esm.js';
 window.dialogPolyfill = dialogPolyfill;
 
 </script>
