8thwall / web

8th Wall Web projects and resources.
519 stars 326 forks source link

Update media-preview.js #154

Open dorukeker opened 3 years ago

dorukeker commented 3 years ago

Currently web view check is done against the "inAppBrowser" value of the "browser" object. In iOS the value is not in "inAppBrowser" but in "name". So I added an OR to check it against both.