From 72fd49401ff36eb0bc1cc504c0b409118ed59760 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 16 Nov 2022 00:08:16 +0300 Subject: [PATCH] [desktop] get def printer name --- apps/common/main/lib/controller/Desktop.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/controller/Desktop.js b/apps/common/main/lib/controller/Desktop.js index 356764bd4..43c1a93c7 100644 --- a/apps/common/main/lib/controller/Desktop.js +++ b/apps/common/main/lib/controller/Desktop.js @@ -369,7 +369,10 @@ define([ } return undefined; - } + }, + getDefaultPrinterName: function () { + return nativevars ? nativevars.defaultPrinterName : ''; + }, }; };