draft-js
Version:
A React framework for building text editors.
18 lines (16 loc) • 400 B
Flow
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict
*/
;
module.exports = function (name: string) {
if (typeof window !== 'undefined' && window.__DRAFT_GKX) {
return !!window.__DRAFT_GKX[name];
}
return false;
};