mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	Check if ES6 supported
This commit is contained in:
		
							parent
							
								
									caeba1197c
								
							
						
					
					
						commit
						e82bdf1511
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue