paystory-de / thermal-printer-cordova-plugin

Cordova wrapper for ESC/POS Thermal Printer library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

listPrinters is not defined

Phanusone opened this issue · comments

Hello, i using this plugin in my project use framework7-vue. Now i have an error= "listPrinters is not defined"
this is test code:
methods: {
login: function () {
listPrinters(
"bluetooth",
function (s) {
console.log("OK",s);
},
function (r) {
console.log("Err" + r);
}
);
},
}

Because (window).listPrinters is not defined 😅
Try ThermalPrinterPlugin.listPrinters or ThermalPrinter.listPrinters instead.
Or if both not exists then try something with Cordova.plugins.....
You can import the thermal-printer.js, too.