Skip to content

Commit 2ea6f66

Browse files
author
KMchaudhary
committed
Resolve copilot comments
1 parent e2ffc0c commit 2ea6f66

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

assets/src/js/youzify-media-page.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ document.addEventListener( 'DOMContentLoaded', function() {
149149
}
150150
} catch ( error ) {
151151
// Error getting player instance
152+
// eslint-disable-next-line no-console
153+
console.error( 'Error getting GoDAM player instance:', error );
152154
}
153155
}
154156

@@ -167,6 +169,8 @@ document.addEventListener( 'DOMContentLoaded', function() {
167169
}
168170
} catch ( error ) {
169171
// Error stopping player
172+
// eslint-disable-next-line no-console
173+
console.error( 'Error stopping GoDAM player instance:', error );
170174
}
171175
}
172176

inc/classes/youzify/class-youzify.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function add_youzify_godam_player( $media_id = 0, $args = array() ) {
7878
<div class="youzify-media-item-godam-video" id="godam-video-<?php echo esc_attr( $media_id ); ?>">
7979
<div class="youzify-media-item-godam-video--tools">
8080
<!-- We don't have item_id hence unable to generate permalink -->
81-
<a href="#">
81+
<a href="javascript:void(0);">
8282
<i class="fas fa-link youzify-media-post-link"></i>
8383
</a>
8484
<a class="youzify-media-item-godam-video--play-button">

0 commit comments

Comments
 (0)