9 lines
295 B
JavaScript
9 lines
295 B
JavaScript
import { isInIssuePage, isInMRPage, isInEpicPage } from './common_utils';
|
|
|
|
export const addClassIfElementExists = (element, className) => {
|
|
if (element) {
|
|
element.classList.add(className);
|
|
}
|
|
};
|
|
|
|
export const isInVueNoteablePage = () => isInIssuePage() || isInEpicPage() || isInMRPage();
|