diff --git a/app/js/lib/mtproto_wrapper.js b/app/js/lib/mtproto_wrapper.js index 6ea95e85..ea7bd883 100644 --- a/app/js/lib/mtproto_wrapper.js +++ b/app/js/lib/mtproto_wrapper.js @@ -613,7 +613,7 @@ angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto']) }; }) -.service('MtpSingleInstanceService', function ($rootScope, $interval, Storage, AppRuntimeManager, IdleManager, ErrorService, MtpNetworkerFactory) { +.service('MtpSingleInstanceService', function (_, $rootScope, $interval, Storage, AppRuntimeManager, IdleManager, ErrorService, MtpNetworkerFactory) { var instanceID = nextRandomInt(0xFFFFFFFF); var started = false; @@ -664,7 +664,7 @@ angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto']) else if (idleInstance.time > time - 10000 && time > errorShowTime) { - ErrorService.show({error: {type: 'MULTIPLE_TABS_OPEN'}}); + ErrorService.alert(_('error_modal_warning_title'), _('error_modal_multiple_open_tabs')); errorShowTime += tsNow() + 60000; } } diff --git a/app/js/locales/en-us.json b/app/js/locales/en-us.json index f0031597..debf415a 100644 --- a/app/js/locales/en-us.json +++ b/app/js/locales/en-us.json @@ -225,7 +225,7 @@ "error_modal_flood_description": "You are performing too many actions. Please try again later.", "error_modal_internal_description": "Internal server error occured. Please try again later.", "error_modal_tech_details": "Technical details here", - "error_modal_multiple_open_tabs": "Telegram Web doesn't support working in multiple tabs. Please close other app instances.", + "error_modal_multiple_open_tabs": "Please close other Telegram app tabs.", "head_new_group": "New Group", diff --git a/app/partials/desktop/error_modal.html b/app/partials/desktop/error_modal.html index 341b425f..c3f2ca78 100644 --- a/app/partials/desktop/error_modal.html +++ b/app/partials/desktop/error_modal.html @@ -5,7 +5,6 @@