Files
jitsi-meet/react/features/app/components/App.web.js

43 lines
957 B
JavaScript
Raw Normal View History

// @flow
import { AtlasKitThemeProvider } from '@atlaskit/theme';
import React from 'react';
import '../../base/responsive-ui';
import '../../chat';
import '../../room-lock';
import '../../video-layout';
2017-07-21 16:12:02 -05:00
import { AbstractApp } from './AbstractApp';
/**
* Root application component.
*
* @extends AbstractApp
*/
export class App extends AbstractApp {
/**
* Overrides the parent method to inject {@link AtlasKitThemeProvider} as
* the top most component.
*
* @override
*/
_createMainElement(component, props) {
return (
<AtlasKitThemeProvider mode = 'dark'>
{ super._createMainElement(component, props) }
</AtlasKitThemeProvider>
);
}
2017-01-15 13:05:17 -06:00
/**
* Gets a Location object from the window with information about the current
* location of the document.
*
* @inheritdoc
*/
2017-03-01 21:33:49 -06:00
getWindowLocation() {
2017-01-15 13:05:17 -06:00
return window.location;
}
}