debian-mirror-gitlab/app/assets/javascripts/lib/utils/dom_utils.js
2018-11-08 19:23:39 +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();