Bugfixes, cleanup assets, added FirefoxOS manifest
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 229 B |
Before Width: | Height: | Size: 515 B |
Before Width: | Height: | Size: 892 B |
Before Width: | Height: | Size: 527 B |
Before Width: | Height: | Size: 904 B |
Before Width: | Height: | Size: 476 B |
Before Width: | Height: | Size: 875 B |
Before Width: | Height: | Size: 474 B |
Before Width: | Height: | Size: 898 B |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 431 B |
Before Width: | Height: | Size: 706 B |
Before Width: | Height: | Size: 773 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 712 B |
Before Width: | Height: | Size: 1.3 KiB |
BIN
app/img/icons/icon120.png
Normal file
After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 3.4 KiB |
BIN
app/img/icons/icon32.png
Normal file
After Width: | Height: | Size: 959 B |
BIN
app/img/icons/icon60.png
Normal file
After Width: | Height: | Size: 9.0 KiB |
BIN
app/img/icons/icon64.png
Normal file
After Width: | Height: | Size: 9.5 KiB |
BIN
app/img/icons/icon90.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
app/img/screenshot1.png
Normal file
After Width: | Height: | Size: 822 KiB |
BIN
app/img/screenshot1_tile.png
Normal file
After Width: | Height: | Size: 130 KiB |
BIN
app/img/screenshot2.png
Normal file
After Width: | Height: | Size: 2.9 MiB |
@ -48,8 +48,8 @@ config(['$locationProvider', '$routeProvider', '$compileProvider', function($loc
|
||||
$.emojiarea.icons = icons;
|
||||
$.emojiarea.reverseIcons = reverseIcons;
|
||||
|
||||
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|blob|filesystem|chrome-extension):|data:image\//);
|
||||
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|file|mailto|blob|filesystem|chrome-extension):|data:image\//);
|
||||
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|blob|filesystem|chrome-extension|app):|data:image\//);
|
||||
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|file|mailto|blob|filesystem|chrome-extension|app):|data:image\//);
|
||||
|
||||
|
||||
// $locationProvider.html5Mode(true);
|
||||
|
@ -1500,7 +1500,7 @@ factory('MtpSha1Service', function ($q) {
|
||||
}
|
||||
}).
|
||||
|
||||
factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerator, MtpSecureRandom, MtpSha1Service, MtpAesService, AppConfigManager, $http, $q, $timeout) {
|
||||
factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerator, MtpSecureRandom, MtpSha1Service, MtpAesService, AppConfigManager, $http, $q, $timeout, $interval) {
|
||||
|
||||
var updatesProcessor;
|
||||
|
||||
@ -1517,7 +1517,7 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato
|
||||
// (function () {
|
||||
// console.log('update server salt');
|
||||
// self.serverSalt = [0,0,0,0,0,0,0,0];
|
||||
// setTimeout(arguments.callee, nextRandomInt(2000, 12345));
|
||||
// $timeout(arguments.callee, nextRandomInt(2000, 12345));
|
||||
// })();
|
||||
// }
|
||||
|
||||
@ -1536,7 +1536,7 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato
|
||||
|
||||
this.pendingTimeouts = [];
|
||||
|
||||
this.longPollInt = setInterval(this.checkLongPoll.bind(this), 10000);
|
||||
this.longPollInt = $interval(this.checkLongPoll.bind(this), 10000);
|
||||
this.checkLongPoll();
|
||||
};
|
||||
|
||||
@ -1689,7 +1689,7 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato
|
||||
this.wrapMtpCall('http_wait', {max_delay: 0, wait_after: 0, max_wait: maxWait}, {noResponse: true}).
|
||||
then((function () {
|
||||
delete this.longPollPending;
|
||||
setTimeout(this.checkLongPoll.bind(this), 0);
|
||||
$timeout(this.checkLongPoll.bind(this), 0);
|
||||
}).bind(this));
|
||||
};
|
||||
|
||||
@ -1981,7 +1981,7 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato
|
||||
|
||||
clearTimeout(this.nextReqTO);
|
||||
|
||||
this.nextReqTO = setTimeout(this.performSheduledRequest.bind(this), delay || 0);
|
||||
this.nextReqTO = $timeout(this.performSheduledRequest.bind(this), delay || 0);
|
||||
this.nextReq = nextReq;
|
||||
};
|
||||
|
||||
@ -2274,7 +2274,7 @@ factory('MtpApiManager', function (AppConfigManager, MtpAuthorizer, MtpNetworker
|
||||
return (cachedNetworker = networker).wrapApiCall(method, params, options).then(
|
||||
function (result) {
|
||||
deferred.resolve(result);
|
||||
// setTimeout(function () {
|
||||
// $timeout(function () {
|
||||
// deferred.resolve(result);
|
||||
// }, 1000);
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Telegram UNOFFICIAL",
|
||||
"version": "0.0.11",
|
||||
"version": "0.0.12",
|
||||
"short_name": "Webogram",
|
||||
"manifest_version": 2,
|
||||
"app": {
|
||||
@ -13,6 +13,12 @@
|
||||
{"fileSystem": ["write"]},
|
||||
"storage"
|
||||
],
|
||||
"icons": { "16": "img/icons/icon16.png",
|
||||
"128": "img/icons/icon128.png" }
|
||||
"icons": {
|
||||
"16": "img/icons/icon16.png",
|
||||
"32": "img/icons/icon32.png",
|
||||
"60": "img/icons/icon60.png",
|
||||
"64": "img/icons/icon64.png",
|
||||
"90": "img/icons/icon90.png",
|
||||
"128": "img/icons/icon128.png"
|
||||
}
|
||||
}
|
27
app/manifest.webapp
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "Webogram",
|
||||
"description": "Webogram – UNOFFICIAL Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram",
|
||||
"version": "0.0.12",
|
||||
"launch_path": "/index.html",
|
||||
"developer": {
|
||||
"name": "Igor Zhukov",
|
||||
"url": "https://github.com/zhukov"
|
||||
},
|
||||
"installs_allowed_from": [
|
||||
"*"
|
||||
],
|
||||
"permissions": {
|
||||
"desktop-notification": {
|
||||
"description": "To show new message notifications etc"
|
||||
}
|
||||
},
|
||||
"icons": {
|
||||
"16": "img/icons/icon16.png",
|
||||
"32": "img/icons/icon32.png",
|
||||
"60": "img/icons/icon60.png",
|
||||
"64": "img/icons/icon64.png",
|
||||
"90": "img/icons/icon90.png",
|
||||
"120": "img/icons/icon120.png",
|
||||
"128": "img/icons/icon128.png"
|
||||
}
|
||||
}
|
@ -12,7 +12,6 @@
|
||||
<p>Visit <a target="_blank" href="https://telegram.org/">telegram.org</a> to learn more.</p>
|
||||
</div>
|
||||
<a href="#/login" class="btn btn-tg btn-block">Start Messaging</a>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|