Skip to content

Commit

Permalink
Remove unused event data
Browse files Browse the repository at this point in the history
  • Loading branch information
richtr committed Jul 7, 2015
1 parent b8b2292 commit 57ac6cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions emulator/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</div>

<script>
// Pass device orientation event info to opener window
// Push device orientation event info to opener window
(function() {
if (!window.opener) return;

Expand All @@ -44,8 +44,6 @@
obj["beta"] = orientation.beta;
obj["gamma"] = orientation.gamma;
obj["absolute"] = orientation.absolute;
/*obj["webkitCompassHeading"] = dO.webkitCompassHeading;
obj["webkitCompassAccuracy"] = dO.webkitCompassAccuracy;*/
var objStr = JSON.stringify(obj);
window.opener.postMessage(objStr, "*");
}
Expand Down

0 comments on commit 57ac6cc

Please sign in to comment.