소스 검색

Update app.js, add profile embed util

Daniel Supernault 5 년 전
부모
커밋
eccc84cbdc
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      resources/assets/js/app.js

+ 2 - 2
resources/assets/js/app.js

@@ -99,8 +99,8 @@ window.App.util = {
 			return '<iframe src="'+u+'" class="pixelfed__embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe><script async defer src="'+window.location.origin +'/embed.js"><\/script>';
 		}),
 		profile: (function(url) {
-			// placeholder
-			console.error('This method is not supported yet');
+			let u = url + '/embed';
+			return '<iframe src="'+u+'" class="pixelfed__embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe><script async defer src="'+window.location.origin +'/embed.js"><\/script>';
 		})
 	}