Skip to content

Commit

Permalink
fix: require devtools-elements.js with the extension mentioned explic…
Browse files Browse the repository at this point in the history
…itly (#6079)

This is a workaround for the issue with `@ngtools/webpack@6.1.0-rc.2`, described here: NativeScript/nativescript-dev-webpack#607 (comment)
  • Loading branch information
sis0k0 committed Jul 18, 2018
1 parent 86f9d38 commit 1a15aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tns-core-modules/ui/frame/frame.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ let fragmentId = -1;
export let moduleLoaded: boolean;

if (global && global.__inspector) {
const devtools = require("tns-core-modules/debugger/devtools-elements");
const devtools = require("tns-core-modules/debugger/devtools-elements.js");
devtools.attachDOMInspectorEventCallbacks(global.__inspector);
devtools.attachDOMInspectorCommandCallbacks(global.__inspector);
}
Expand Down

0 comments on commit 1a15aa2

Please sign in to comment.