Commit acfa5a22 authored by Alejandro Celaya's avatar Alejandro Celaya Committed by Alejandro Celaya

Migrate check-envs module to TS

parent 1997770f
......@@ -7,10 +7,9 @@ import { parseConfigFragment } from '../../shared/config-fragment';
* This function does not check for supported browser features. That is handled
* by the boot script.
*
* @param {Window} window
* @return {boolean} `true` if the checks passed
* @return `true` if the checks passed
*/
export function checkEnvironment(window) {
export function checkEnvironment(window: Window): boolean {
const { version, origin } = parseConfigFragment(window.location.href);
// If the sidebar and annotator code are using different versions of the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment