From 297dd8750a27959c8c9ef99508488fe5971851fc Mon Sep 17 00:00:00 2001 From: xnkevinnguyen Date: Wed, 19 Feb 2020 11:31:17 -0800 Subject: [PATCH] Reformatting --- src/microbit/__model/display.py | 1 - src/view/App.tsx | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/microbit/__model/display.py b/src/microbit/__model/display.py index 2aaef6760..5b0eef549 100644 --- a/src/microbit/__model/display.py +++ b/src/microbit/__model/display.py @@ -354,4 +354,3 @@ def __update_light_level(self, new_light_level): @staticmethod def sleep_ms(ms): time.sleep(ms / 1000) - diff --git a/src/view/App.tsx b/src/view/App.tsx index c8bff087b..3e96b0adf 100644 --- a/src/view/App.tsx +++ b/src/view/App.tsx @@ -29,11 +29,12 @@ class App extends React.Component<{}, IState> { } componentDidMount() { if (document.currentScript) { - const initialDevice = document.currentScript.getAttribute('initialDevice') + const initialDevice = document.currentScript.getAttribute( + "initialDevice" + ); if (initialDevice) { - this.setState({ currentDevice: initialDevice }) - + this.setState({ currentDevice: initialDevice }); } } window.addEventListener("message", this.handleMessage);