Skip to content

Commit

Permalink
bump cdn version
Browse files Browse the repository at this point in the history
  • Loading branch information
yeasir01 committed Jan 22, 2024
1 parent 71a4760 commit 86a2ba3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/browser/playground.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import BrotherSdK from "https://cdn.jsdelivr.net/npm/bpac-js@2.0.3/dist/index.mjs"
import BrotherSdK from "https://cdn.jsdelivr.net/npm/bpac-js@2.0.4/dist/index.mjs"

const printBtn = document.getElementById("print-btn");
const previewBtn = document.getElementById("preview-btn");
const exportBtn = document.getElementById("export-btn");
const preview = document.getElementById("preview");

const tag = new BrotherSdK({
templatePath: "https://github.com/yeasir01/shelf-tags/raw/main/templates/shelf_tag.lbx",
templatePath: "C:/Users/YMH/Desktop/example.lbx",
exportDir: "C:/Users/YMH/Desktop/Exported Labels/",
});

Expand All @@ -29,7 +29,7 @@ const printTag = async () => {
const previewTag = async () => {
try {
preview.src = "";
const imgData = await tag.getImageData({}, { height: 120 });
const imgData = await tag.getImageData(data, { height: 120 });
preview.src = imgData;
} catch (error) {
console.log({ error });
Expand Down

0 comments on commit 86a2ba3

Please sign in to comment.