1 | import { getWindow } from './dom/getWindow';
|
2 | export function initializeDir(win) {
|
3 | var w = (win || getWindow());
|
4 | if (w && !w.__hasInitializedDir__) {
|
5 | w.__hasInitializedDir__ = true;
|
6 | // Ensure that the documentElement has a 'dir' attribute.
|
7 | var documentElement = w.document.documentElement;
|
8 | if (!documentElement.hasAttribute('dir')) {
|
9 | documentElement.setAttribute('dir', 'ltr');
|
10 | }
|
11 | }
|
12 | }
|
13 | //# sourceMappingURL=initializeDir.js.map |
\ | No newline at end of file |