| 
									
										
										
										
											2018-01-28 21:22:43 +09:00
										 |  |  | //テーマ適用
 | 
					
						
							|  |  |  | function themes(theme) { | 
					
						
							|  |  |  | 	if (!theme) { | 
					
						
							| 
									
										
										
										
											2020-09-08 23:35:30 +09:00
										 |  |  | 		var theme = localStorage.getItem('customtheme-id') | 
					
						
							| 
									
										
										
										
											2019-05-19 16:39:30 +09:00
										 |  |  | 		if (!theme) { | 
					
						
							| 
									
										
										
										
											2020-09-08 23:35:30 +09:00
										 |  |  | 			localStorage.setItem('customtheme-id', 'black') | 
					
						
							| 
									
										
										
										
											2018-03-13 02:41:38 +09:00
										 |  |  | 		} | 
					
						
							| 
									
										
										
										
											2018-01-28 21:22:43 +09:00
										 |  |  | 	} | 
					
						
							| 
									
										
										
										
											2020-09-08 23:35:30 +09:00
										 |  |  | 	postMessage(['themeCSSRequest', theme + '.thedesktheme'], '*') | 
					
						
							| 
									
										
										
										
											2019-12-20 09:52:57 +09:00
										 |  |  | 	var el = document.getElementsByTagName('html')[0] | 
					
						
							|  |  |  | 	el.style.backgroundColor = 'var(--bg)' | 
					
						
							| 
									
										
										
										
											2018-01-28 21:22:43 +09:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2019-12-20 09:52:57 +09:00
										 |  |  | themes() |