Import File implementation
Summary: Implementation was missing for the browser. This provides a default implementation. Reviewed By: aigoncharov Differential Revision: D48311198 fbshipit-source-id: fd067600f571234e0fbccfb90853b62f175ff8fb
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2f5f4911e5
commit
ff6f98fc0d
@@ -139,6 +139,9 @@ export function createNetworkManager(
|
||||
})
|
||||
.then((res) => {
|
||||
if (res) {
|
||||
if (res.encoding !== 'utf-8' || typeof res.data !== 'string') {
|
||||
return;
|
||||
}
|
||||
const importedRoutes = JSON.parse(res.data);
|
||||
importedRoutes?.forEach((importedRoute: Route) => {
|
||||
if (importedRoute != null) {
|
||||
|
||||
Reference in New Issue
Block a user