update
This commit is contained in:
@@ -132,8 +132,9 @@ export class NativeBridgeService {
|
||||
return { success: false, error: 'متاسفانه ارتباط با چاپگر برقرار نیست.' };
|
||||
}
|
||||
try {
|
||||
this.toastService.info({ text: 'در حال چاپ ...' });
|
||||
// @ts-ignore
|
||||
window.NativeBridge.print(JSON.stringify([payload]));
|
||||
window.NativeBridge.print(JSON.stringify(payload));
|
||||
return { success: true };
|
||||
} catch (error) {
|
||||
this.toastService.warn({ text: 'متاسفانه ارتباط با چاپگر برقرار نیست.' });
|
||||
|
||||
Reference in New Issue
Block a user