mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 06:23:18 +00:00
Update app.js, add profile embed util
This commit is contained in:
parent
955c53ca44
commit
eccc84cbdc
1 changed files with 2 additions and 2 deletions
4
resources/assets/js/app.js
vendored
4
resources/assets/js/app.js
vendored
|
@ -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>';
|
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) {
|
profile: (function(url) {
|
||||||
// placeholder
|
let u = url + '/embed';
|
||||||
console.error('This method is not supported yet');
|
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>';
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue