listPrinters is not defined
Phanusone opened this issue · comments
Phanusone commented
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);
}
);
},
}
Patrick Bußmann commented
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.