mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
DEV: Provide radix argument to parseInt (#8281)
* DEV: Provide radix 10 argument to parseInt * DEV: Provide radix 16 argument to parseInt * DEV: Remove unnecessary parseInt calls * Fix year formatting parseInt was used here to convert decimals to ints
This commit is contained in:
@ -14,7 +14,7 @@ export default {
|
||||
$(".lazyYT", $elem).lazyYT({
|
||||
onPlay(e, $el) {
|
||||
// don't cloak posts that have playing videos in them
|
||||
const postId = parseInt($el.closest("article").data("post-id"));
|
||||
const postId = parseInt($el.closest("article").data("post-id"), 10);
|
||||
if (postId) {
|
||||
api.preventCloak(postId);
|
||||
}
|
||||
|
Reference in New Issue
Block a user