✌️
This commit is contained in:
		@@ -43,6 +43,6 @@ module.exports = me => {
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	riot.mixin('ui-progress', {
 | 
			
		||||
		Progress: require('./scripts/loading.ls')
 | 
			
		||||
		Progress: require('./scripts/loading')
 | 
			
		||||
	});
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										11
									
								
								src/web/app/common/scripts/check-for-update.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								src/web/app/common/scripts/check-for-update.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
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);
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		});
 | 
			
		||||
	});
 | 
			
		||||
};
 | 
			
		||||
@@ -1,9 +0,0 @@
 | 
			
		||||
module.exports = ->
 | 
			
		||||
	fetch \/api:meta
 | 
			
		||||
	.then (res) ~>
 | 
			
		||||
		meta <~ res.json!.then
 | 
			
		||||
		if meta.commit.hash != VERSION
 | 
			
		||||
			if window.confirm '新しいMisskeyのバージョンがあります。更新しますか?\r\n(このメッセージが繰り返し表示される場合は、サーバーにデータがまだ届いていない可能性があるので、少し時間を置いてから再度お試しください)'
 | 
			
		||||
				location.reload true
 | 
			
		||||
	.catch ~>
 | 
			
		||||
		# ignore
 | 
			
		||||
		Reference in New Issue
	
	Block a user