Skip to content
Snippets Groups Projects
Commit 00d50095 authored by Yuriy Maksymets's avatar Yuriy Maksymets
Browse files

Fixing safari yet again

parent 5346da3a
No related branches found
No related tags found
1 merge request!32Fixing safari yet again
Checking pipeline status
......@@ -2,9 +2,6 @@
// Translate local canvas input events to draw messages and send to the room.
// Get back room updates and invoke the local canvas renderer.
import EventTarget from "@ungap/event-target"
global.EventTarget = EventTarget
import * as canvas from "./canvas.js"
import * as HTML from "./elements.js"
import { connect } from "./room.js"
......
const path = require("path")
const webpack = require("webpack")
module.exports = {
mode: "development",
......@@ -7,4 +8,9 @@ module.exports = {
filename: "app.js",
path: path.resolve(__dirname, "public/js"),
},
plugins: [
new webpack.ProvidePlugin({
EventTarget: ["@ungap/event-target", "default"],
}),
],
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment