mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 12:23:08 +02:00
Clean up
This commit is contained in:
parent
76e83a9c0e
commit
504b451a1f
1 changed files with 0 additions and 10 deletions
|
@ -11,7 +11,6 @@ Misskeyを起動します。
|
|||
|
||||
const riot = require('riot');
|
||||
require('velocity');
|
||||
const log = require('./common/scripts/log.ls');
|
||||
const api = require('./common/scripts/api.ls');
|
||||
const signout = require('./common/scripts/signout.ls');
|
||||
const generateDefaultUserdata = require('./common/scripts/generate-default-userdata.ls');
|
||||
|
@ -41,20 +40,12 @@ try {
|
|||
Storage.prototype.setItem = () => { }; // noop
|
||||
}
|
||||
|
||||
// MAIN PROCESS
|
||||
|
||||
log("Misskey (aoi) v:" + VERSION);
|
||||
|
||||
// Check for Update
|
||||
checkForUpdate();
|
||||
|
||||
// Get token from cookie
|
||||
const i = (document.cookie.match(/i=(\w+)/) || [null, null])[1];
|
||||
|
||||
if (i != null) {
|
||||
log("ME: " + i);
|
||||
}
|
||||
|
||||
// ユーザーをフェッチしてコールバックする
|
||||
module.exports = callback => {
|
||||
// Get cached account data
|
||||
|
@ -86,7 +77,6 @@ module.exports = callback => {
|
|||
localStorage.setItem('me', JSON.stringify(me));
|
||||
});
|
||||
}
|
||||
log("Fetched! Hello " + me.username + ".");
|
||||
}
|
||||
mixins(me);
|
||||
const init = document.getElementById('init');
|
||||
|
|
Loading…
Reference in a new issue