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