DEV: allows to import decorateGithubOneboxBody (#15349)

This commit is contained in:
Joffrey JAFFEUX 2021-12-17 10:05:04 +01:00 committed by GitHub
parent 022dba4727
commit afdc01a8d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@ import { withPluginApi } from "discourse/lib/plugin-api";
let _showMoreClickPostsElements = [];
function decorateGithubOneboxBody(element) {
export function decorateGithubOneboxBody(element) {
const containers = element.querySelectorAll(
".onebox.githubcommit .show-more-container, .onebox.githubpullrequest .show-more-container, .onebox.githubissue .show-more-container"
);