This commit is contained in:
ICabaleiro 2020-02-21 16:51:35 +00:00
parent fe8dc16a85
commit 9643e92256

View file

@ -30,11 +30,9 @@ function register ({ registerHook, peertubeHelpers }) {
registerHook({ registerHook({
target: 'action:router.navigation-end', target: 'action:router.navigation-end',
handler: params => { handler: params => {
console.warn("======= INJECTING 404 ====== path is:", params.path)
if(document.querySelector('my-page-not-found')){ if(document.querySelector('my-page-not-found')){
const img = document.querySelector('my-page-not-found').querySelector('img') const img = document.querySelector('my-page-not-found').querySelector('img')
if(img){ if(img){
console.log("REACHING THE POINT!!!!!!")
img.src = image404 img.src = image404
} }
} }