From 9111bed58057ba1402d41bd8a19e780955234d7c Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Wed, 5 Jul 2017 11:57:23 +0300 Subject: [PATCH] Fixed crash in ChromeApp Also bump to 0.5.7.1 Closes #1450 --- app/js/app.js | 2 +- app/js/background.js | 2 +- app/js/controllers.js | 2 +- app/js/directives.js | 2 +- app/js/directives_mobile.js | 2 +- app/js/filters.js | 2 +- app/js/lib/bin_utils.js | 2 +- app/js/lib/config.js | 4 ++-- app/js/lib/crypto_worker.js | 2 +- app/js/lib/mtproto.js | 2 +- app/js/lib/mtproto_wrapper.js | 2 +- app/js/lib/ng_utils.js | 2 +- app/js/lib/tl_utils.js | 2 +- app/js/lib/utils.js | 2 +- app/js/message_composer.js | 2 +- app/js/messages_manager.js | 2 +- app/js/services.js | 7 ++++++- app/manifest.json | 2 +- app/manifest.webapp | 2 +- package.json | 2 +- 20 files changed, 26 insertions(+), 21 deletions(-) diff --git a/app/js/app.js b/app/js/app.js index 4644ad0d..19adeb66 100644 --- a/app/js/app.js +++ b/app/js/app.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE diff --git a/app/js/background.js b/app/js/background.js index 11495c64..dad25228 100644 --- a/app/js/background.js +++ b/app/js/background.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE diff --git a/app/js/controllers.js b/app/js/controllers.js index ed905182..75e08400 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE diff --git a/app/js/directives.js b/app/js/directives.js index 16e612e0..33716e7c 100755 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE diff --git a/app/js/directives_mobile.js b/app/js/directives_mobile.js index d466f473..1c48747d 100644 --- a/app/js/directives_mobile.js +++ b/app/js/directives_mobile.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE diff --git a/app/js/filters.js b/app/js/filters.js index 0885d12c..577d261a 100644 --- a/app/js/filters.js +++ b/app/js/filters.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE diff --git a/app/js/lib/bin_utils.js b/app/js/lib/bin_utils.js index df9a210a..2348e7b9 100644 --- a/app/js/lib/bin_utils.js +++ b/app/js/lib/bin_utils.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE diff --git a/app/js/lib/config.js b/app/js/lib/config.js index 9e574e54..4bc2c564 100644 --- a/app/js/lib/config.js +++ b/app/js/lib/config.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE @@ -20,7 +20,7 @@ Config = window.Config || {} Config.App = { id: 2496, hash: '8da85b0d5bfe62527e5b244c209159c3', - version: '0.5.7', + version: '0.5.7.1', domains: ['web.telegram.org', 'zhukov.github.io'] } diff --git a/app/js/lib/crypto_worker.js b/app/js/lib/crypto_worker.js index 2a5b44fd..087c3bb9 100644 --- a/app/js/lib/crypto_worker.js +++ b/app/js/lib/crypto_worker.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE diff --git a/app/js/lib/mtproto.js b/app/js/lib/mtproto.js index 9ce95121..0d353a68 100644 --- a/app/js/lib/mtproto.js +++ b/app/js/lib/mtproto.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE diff --git a/app/js/lib/mtproto_wrapper.js b/app/js/lib/mtproto_wrapper.js index 374dec9d..2c9dc123 100644 --- a/app/js/lib/mtproto_wrapper.js +++ b/app/js/lib/mtproto_wrapper.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE diff --git a/app/js/lib/ng_utils.js b/app/js/lib/ng_utils.js index 0df4257b..85e2fa10 100755 --- a/app/js/lib/ng_utils.js +++ b/app/js/lib/ng_utils.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE diff --git a/app/js/lib/tl_utils.js b/app/js/lib/tl_utils.js index 0fc61a9f..a9164d39 100644 --- a/app/js/lib/tl_utils.js +++ b/app/js/lib/tl_utils.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE diff --git a/app/js/lib/utils.js b/app/js/lib/utils.js index 95858dc0..f88ba448 100644 --- a/app/js/lib/utils.js +++ b/app/js/lib/utils.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE diff --git a/app/js/message_composer.js b/app/js/message_composer.js index e424463c..fb0b805f 100644 --- a/app/js/message_composer.js +++ b/app/js/message_composer.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE diff --git a/app/js/messages_manager.js b/app/js/messages_manager.js index 300b02ee..5d8a3315 100644 --- a/app/js/messages_manager.js +++ b/app/js/messages_manager.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE diff --git a/app/js/services.js b/app/js/services.js index a13b9f4e..9ba007b7 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.5.7 - messaging web application for MTProto + * Webogram v0.5.7.1 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE @@ -4730,6 +4730,11 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) !target.onclick && !target.onmousedown) { var href = $(target).attr('href') || target.href || '' + if (Config.Modes.chrome_packed && + href.length && + $(target).attr('target') == '_blank') { + $(target).attr('rel', '') + } var match = href.match(tgAddrRegExp) if (match) { if (handleTgProtoAddr(match[3], true)) { diff --git a/app/manifest.json b/app/manifest.json index 94450556..c69e3fdd 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -1,7 +1,7 @@ { "name": "Telegram", "description": "Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram", - "version": "0.5.7", + "version": "0.5.7.1", "short_name": "Telegram", "manifest_version": 2, "app": { diff --git a/app/manifest.webapp b/app/manifest.webapp index b101fd12..88416791 100644 --- a/app/manifest.webapp +++ b/app/manifest.webapp @@ -1,7 +1,7 @@ { "name": "Telegram", "description": "Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram", - "version": "0.5.7", + "version": "0.5.7.1", "type": "privileged", "launch_path": "/index.html", "developer": { diff --git a/package.json b/package.json index 358ea161..246e4910 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "Telegram", "description": "Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram", - "version": "0.5.7", + "version": "0.5.7.1", "main": "app/index.html", "single-instance": true, "dom_storage_quota": 40,