Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@leoncvlt/ar-button

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leoncvlt/ar-button - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

17

index.js

@@ -20,3 +20,2 @@ // constants to check for various platforms / AR subsytems support

IS_CHROMEOS: /\bCrOS\b/.test(navigator.userAgent),
IS_ANDROID: /android/i.test(navigator.userAgent),

@@ -41,3 +40,2 @@

const tempAnchor = document.createElement("a");
return Boolean(

@@ -48,9 +46,6 @@ tempAnchor.relList && tempAnchor.relList.supports && tempAnchor.relList.supports("ar")

// @see https://developer.chrome.com/multidevice/user-agent
IS_SAFARI: /Safari\//.test(navigator.userAgent),
IS_FIREFOX: /firefox/i.test(navigator.userAgent),
IS_OCULUS: /OculusBrowser/.test(navigator.userAgent),
IS_IOS_CHROME: IS_IOS && /CriOS\//.test(navigator.userAgent),
IS_IOS_SAFARI: IS_IOS && IS_SAFARI,
IS_SCENEVIEWER_CANDIDATE: IS_ANDROID && !IS_FIREFOX && !IS_OCULUS,
IS_SCENEVIEWER_CANDIDATE:
/android/i.test(navigator.userAgent) &&
!/firefox/i.test(navigator.userAgent) &&
!/OculusBrowser/.test(navigator.userAgent),
};

@@ -153,3 +148,3 @@

if ((IS_IOS_CHROME || IS_IOS_SAFARI) && compat.IS_AR_QUICKLOOK_CANDIDATE) {
if (compat.IS_AR_QUICKLOOK_CANDIDATE) {
// system supports AR via quick look (on ios this takes precedence on scene viewer)

@@ -212,3 +207,3 @@ button.setAttribute("ar", "quick-look");

if (fallbackUrl) {
activateAR({fallbackUrl: encodeURIComponent(fallbackUrl)});
activateAR({ fallbackUrl: encodeURIComponent(fallbackUrl) });
}

@@ -215,0 +210,0 @@ });

{
"name": "@leoncvlt/ar-button",
"version": "0.2.0",
"version": "0.2.1",
"description": "A web component to easily display 3D models in native AR across browsers and mobile devices",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc