Use modern ES syntax rather than .call (#29368)
				
					
				
			This commit is contained in:
		@@ -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)) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user