Skip to content

Commit

Permalink
Null check on orientation lock. (ampproject#35639)
Browse files Browse the repository at this point in the history
  • Loading branch information
processprocess authored Aug 12, 2021
1 parent 5ff32ad commit 4ed4b92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/amp-story/1.0/amp-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ export class AmpStory extends AMP.BaseElement {
}

const lockOrientation =
screen.orientation.lock ||
screen.orientation?.lock ||
screen.lockOrientation ||
screen.mozLockOrientation ||
screen.msLockOrientation ||
Expand Down

0 comments on commit 4ed4b92

Please sign in to comment.