Skip to content

Commit 78bb639

Browse files
committed
chore: build branch
1 parent 8039ee4 commit 78bb639

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: deploy gh-pages
33
on:
44
push:
55
branches:
6-
- deploy
6+
- master
77

88
jobs:
99
build-and-deploy:

packages/core/src/canvas/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ResizeObserver from "resize-observer-polyfill";
1+
import ResizePolyfill from "resize-observer-polyfill";
22
import { throttle } from "sketching-utils";
33

44
import type { Editor } from "../editor";
@@ -33,6 +33,7 @@ export class Canvas {
3333
this.mask = new Mask(editor, this);
3434
this.graph = new Graph(editor, this);
3535
this.devicePixelRatio = Math.ceil(window.devicePixelRatio || 1);
36+
const ResizeObserver = window.ResizeObserver || ResizePolyfill;
3637
this.resizeObserver = new ResizeObserver(this.onResize);
3738
this.grab = new Grab(this.editor, this);
3839
this.insert = new Insert(this.editor, this);

0 commit comments

Comments
 (0)