Removed check for profile page

This commit is contained in:
Constance Okoghenun 2018-02-26 17:37:08 +01:00
parent bee125e6aa
commit de0aff845f

View file

@ -1,6 +1,5 @@
import '~/profile/gl_crop';
import Profile from '~/profile/profile';
import { getPagePath } from '~/lib/utils/common_utils';
document.addEventListener('DOMContentLoaded', () => {
$(document).on('input.ssh_key', '#key_key', function () { // eslint-disable-line func-names
@ -13,7 +12,5 @@ document.addEventListener('DOMContentLoaded', () => {
}
});
if (getPagePath() === 'profiles') {
new Profile(); // eslint-disable-line no-new
}
new Profile(); // eslint-disable-line no-new
});