Fix dismissable_callout import
This commit is contained in:
parent
1ea6958916
commit
76bc9eefbb
|
@ -0,0 +1,10 @@
|
|||
import PersistentUserCallout from './persistent_user_callout';
|
||||
|
||||
export default function initDismissableCallout(alertSelector) {
|
||||
const alertEl = document.querySelector(alertSelector);
|
||||
if (!alertEl) {
|
||||
return;
|
||||
}
|
||||
|
||||
new PersistentUserCallout(alertEl); // eslint-disable-line no-new
|
||||
}
|
Loading…
Reference in New Issue