Check if ES6 supported
This commit is contained in:
		@@ -6,10 +6,18 @@
 | 
			
		||||
/**
 | 
			
		||||
 * ドメインに基づいて適切なスクリプトを読み込みます。
 | 
			
		||||
 * ユーザーの言語およびモバイル端末か否かも考慮します。
 | 
			
		||||
 * webpackは介さないためrequireやimportは使えません。
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
'use strict';
 | 
			
		||||
 | 
			
		||||
// Detect an old browser
 | 
			
		||||
if (window.fetch == undefined) {
 | 
			
		||||
	alert(
 | 
			
		||||
		'お使いのブラウザが古いためMisskeyを動作させることができません。' +
 | 
			
		||||
		'バージョンを最新のものに更新するか、別のブラウザをお試しください。');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Get the current url information
 | 
			
		||||
const Url = new URL(location.href);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user