debian-mirror-gitlab/app/assets/javascripts/lib/utils/dom_utils.js
2019-01-03 12:48:30 +05:30

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();