Skip to content

Commit

Permalink
Added Canvas toBlob polyfill patch
Browse files Browse the repository at this point in the history
  • Loading branch information
liamjones committed Jan 31, 2017
1 parent 23423cc commit f686862
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ RUN git clone https://github.com/taizan/PaintsChainer.git && \

WORKDIR /PaintsChainer

RUN git checkout $PAINTSCHAINER_COMMIT
COPY canvas-toblob-polyfill.patch .

RUN git checkout $PAINTSCHAINER_COMMIT && \
git apply canvas-toblob-polyfill.patch && \
rm canvas-toblob-polyfill.patch

EXPOSE 8000

Expand Down
26 changes: 26 additions & 0 deletions canvas-toblob-polyfill.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From d7baf94f8e8bfd3e5f80c8cde90ccfeb038fb49c Mon Sep 17 00:00:00 2001
From: Liam Jones <[email protected]>
Date: Tue, 31 Jan 2017 19:37:37 +0000
Subject: [PATCH] Added Canvas toBlob polyfill

---
index.html | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/index.html b/index.html
index 6654a5a..0b506be 100644
--- a/index.html
+++ b/index.html
@@ -6,7 +6,10 @@

<title>PaintsChainer</title>

- <!-- filestart -->
+ <!-- Canvas toBlob polyfill -->
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/javascript-canvas-to-blob/3.6.0/js/canvas-to-blob.min.js"></script>
+
+ <!-- jQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

<!-- jQuery UI -->
0

0 comments on commit f686862

Please sign in to comment.