Use modern ES syntax rather than .call (#29368)
		
	This commit is contained in:
		
					parent
					
						
							
								6f7615ba86
							
						
					
				
			
			
				commit
				
					
						899eac1a92
					
				
			
		
					 7 changed files with 34 additions and 28 deletions
				
			
		|  | @ -31,6 +31,8 @@ | |||
| 
 | ||||
|       var iframe = iframes.get(data.id); | ||||
| 
 | ||||
|       if(!iframe) return; | ||||
| 
 | ||||
|       if ('source' in e && iframe.contentWindow !== e.source) { | ||||
|         return; | ||||
|       } | ||||
|  | @ -38,7 +40,7 @@ | |||
|       iframe.height = data.height; | ||||
|     }); | ||||
| 
 | ||||
|     [].forEach.call(document.querySelectorAll('iframe.mastodon-embed'), function (iframe) { | ||||
|     document.querySelectorAll('iframe.mastodon-embed').forEach(iframe => { | ||||
|       // select unique id for each iframe
 | ||||
|       var id = 0, failCount = 0, idBuffer = new Uint32Array(1); | ||||
|       while (id === 0 || iframes.has(id)) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue