Browse Source

merged with master

gh-pages
Igor Zhukov 11 years ago
parent
commit
dcb407309b
  1. 2
      app.manifest
  2. 2
      css/app.css
  3. 21
      index.html
  4. 14
      js/app.js
  5. 2
      js/lib/mtproto.js

2
app.manifest

@ -1,5 +1,5 @@
CACHE MANIFEST CACHE MANIFEST
# Time: Wed Apr 02 2014 14:37:46 GMT+0400 (MSK) # Time: Sat Apr 05 2014 20:11:22 GMT+0400 (MSK)
CACHE: CACHE:

2
css/app.css

File diff suppressed because one or more lines are too long

21
index.html

@ -1,7 +1,22 @@
<!doctype html><html lang=en ng-app=myApp manifest=app.manifest><head><meta charset=utf-8><meta name=viewport content="width=device-width, user-scalable=no"><title>Webogram</title><link rel=stylesheet href=css/app.css><link rel=icon href=favicon.ico type=image/x-icon><meta property=og:title content=Webogram><meta property=og:url content="http://zhukov.github.io/webogram/"><meta property=og:image content=http://zhukov.github.io/webogram/img/logo_share.png><meta property=og:site_name content=Webogram><meta property=og:description content="Welcome to an experimental web-client of Telegram messenger. See https://github.com/zhukov/webogram for more info."><script type=text/javascript>(function () { <!doctype html><html lang=en ng-app=myApp manifest=app.manifest><head><meta charset=utf-8><meta name=viewport content="width=device-width, user-scalable=no"><title>Webogram</title><link rel=stylesheet href=css/app.css><link rel=icon href=favicon.ico type=image/x-icon><meta property=og:title content=Webogram><meta property=og:url content="http://zhukov.github.io/webogram/"><meta property=og:image content=http://zhukov.github.io/webogram/img/logo_share.png><meta property=og:site_name content=Webogram><meta property=og:description content="Welcome to an experimental web-client of Telegram messenger. See https://github.com/zhukov/webogram for more info."><script type=text/javascript>(function () {
window.safeConfirm = function (params, callback) {
if (typeof params === 'string') {
params = {message: params};
}
var result = false
try {
result = confirm(params.message);
} catch (e) {
result = true;
}
setTimeout(function () {callback(result)}, 10);
};
if (!window.applicationCache || !window.addEventListener) { if (!window.applicationCache || !window.addEventListener) {
return; return;
} }
var appCache = window.applicationCache, var appCache = window.applicationCache,
declined = false, declined = false,
updateTimeout = false, updateTimeout = false,
@ -18,10 +33,14 @@
attach = function () { attach = function () {
appCache.addEventListener('updateready', function(e) { appCache.addEventListener('updateready', function(e) {
if (appCache.status == appCache.UPDATEREADY) { if (appCache.status == appCache.UPDATEREADY) {
if (!declined && confirm('A new version of Webogram is available. Load it?')) { if (!declined) {
safeConfirm({type: 'WEBOGRAM_UPDATED_RELOAD', message: 'A new version of Webogram is available. Load it?'}, function (result) {
if (result) {
window.location.reload(); window.location.reload();
} else { } else {
declined = true; declined = true;
}
});
scheduleUpdate(); scheduleUpdate();
} }
} }

14
js/app.js

File diff suppressed because one or more lines are too long

2
js/lib/mtproto.js

@ -1759,7 +1759,7 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato
var serializer = new TLSerialization(options); var serializer = new TLSerialization(options);
if (!this.connectionInited) { if (!this.connectionInited) {
serializer.storeInt(0xdda60d3c, 'invokeWithLayer12'); serializer.storeInt(0x2b9b08fa, 'invokeWithLayer14');
serializer.storeInt(0x69796de9, 'initConnection'); serializer.storeInt(0x69796de9, 'initConnection');
serializer.storeInt(2496, 'api_id'); serializer.storeInt(2496, 'api_id');
serializer.storeString(navigator.userAgent || 'Unknown UserAgent', 'device_model'); serializer.storeString(navigator.userAgent || 'Unknown UserAgent', 'device_model');

Loading…
Cancel
Save