Clean up ✨
This commit is contained in:
		
							parent
							
								
									f565122c4c
								
							
						
					
					
						commit
						134be39d38
					
				
					 5 changed files with 75 additions and 127 deletions
				
			
		| 
						 | 
				
			
			@ -8,7 +8,6 @@ const api = require('./common/scripts/api');
 | 
			
		|||
const signout = require('./common/scripts/signout');
 | 
			
		||||
const generateDefaultUserdata = require('./common/scripts/generate-default-userdata');
 | 
			
		||||
const mixins = require('./common/mixins');
 | 
			
		||||
const checkForUpdate = require('./common/scripts/check-for-update');
 | 
			
		||||
require('./common/tags');
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -50,9 +49,6 @@ try {
 | 
			
		|||
	Storage.prototype.setItem = () => { }; // noop
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Check for Update
 | 
			
		||||
checkForUpdate();
 | 
			
		||||
 | 
			
		||||
// ユーザーをフェッチしてコールバックする
 | 
			
		||||
module.exports = callback => {
 | 
			
		||||
	// Get cached account data
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,11 +0,0 @@
 | 
			
		|||
module.exports = () => {
 | 
			
		||||
	fetch('/api:meta').then(res => {
 | 
			
		||||
		res.json().then(meta => {
 | 
			
		||||
			if (meta.commit.hash !== VERSION) {
 | 
			
		||||
				if (window.confirm('新しいMisskeyのバージョンがあります。更新しますか?\r\n(このメッセージが繰り返し表示される場合は、サーバーにデータがまだ届いていない可能性があるので、少し時間を置いてから再度お試しください)')) {
 | 
			
		||||
					location.reload(true);
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		});
 | 
			
		||||
	});
 | 
			
		||||
};
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue