Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
Reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
xnkevinnguyen committed Feb 19, 2020
1 parent 7f5bdb2 commit 297dd87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/microbit/__model/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,4 +354,3 @@ def __update_light_level(self, new_light_level):
@staticmethod
def sleep_ms(ms):
time.sleep(ms / 1000)

7 changes: 4 additions & 3 deletions src/view/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 297dd87

Please sign in to comment.