Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/core/polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
// SubmitEvent.submitter polyfill for Safari < 15.4 and jsDOM
// Original code: https://stackoverflow.com/a/61110260/1337474
// Also see: https://caniuse.com/?search=submitter
//
// NOTE: the `submitter` property is now widely available except for ancient browsers and jsDOM.
!(function () {
if (window.SubmitEvent && "submitter" in window.SubmitEvent.prototype) {
// `submitter` attribute is already supported.
return;
}

let last_btn = null;
const submitable_buttons = `button, input[type="button"], input[type="submit"], input[type="image"]`;
document.addEventListener(
Expand Down
4 changes: 0 additions & 4 deletions webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ module.exports = () => {
config.plugins.push(
new CopyPlugin({
patterns: [
// Copy polyfills loader to the output path.
// TODO: Polyfills not used anymore, remove for next major version.
{ from: path.resolve(__dirname, "../src/polyfills-loader.js") },

// Build and copy Modernizr.
// We're abusing the CopyPlugin transform method here to build
// a Modernizr bundle using the modernizr config. The input
Expand Down