Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Null check on orientation lock.
  • Loading branch information
processprocess committed Aug 12, 2021
commit 5adb01e88918740f63197ca12c607f45118ae3a9
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