cf5a4a4c21
CryptoJS hotfix from https://code.google.com/p/crypto-js/issues/detail?id=90
18 lines
474 B
JavaScript
18 lines
474 B
JavaScript
/*!
|
|
* Webogram v0.1 - messaging web application for MTProto
|
|
* https://github.com/zhukov/webogram
|
|
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
|
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
|
*/
|
|
|
|
importScripts(
|
|
'../../vendor/console-polyfill/console-polyfill.js?1',
|
|
'mtproto.js',
|
|
'../../vendor/cryptoJS/crypto.js?1'
|
|
);
|
|
|
|
onmessage = function (e) {
|
|
var taskID = e.data.taskID;
|
|
|
|
postMessage({taskID: taskID, result: sha1Hash(e.data.bytes)});
|
|
} |