Object.hasOwn & hasOwnProperty replace with lodash has (#367)

* Object.hasOwn & hasOwnProperty replace with lodash has

* fix _has
This commit is contained in:
Chirag Chhatrala
2024-04-03 15:19:33 +05:30
committed by GitHub
parent 615ac88f89
commit a7517252c1
13 changed files with 37 additions and 22 deletions

View File

@@ -1,6 +1,7 @@
<template></template>
<script setup>
import {onMounted} from "vue";
import { default as _has } from 'lodash/has'
const scriptLoaded = ref(false);
const authStore = useAuthStore()
@@ -52,7 +53,7 @@ onMounted(() => {
if (import.meta.server) return
// Setup base
if (!window.hasOwnProperty('Featurebase') || typeof window.Featurebase !== "function") {
if (!_has(window, 'Featurebase') || typeof window.Featurebase !== "function") {
window.Featurebase = function () {
(window.Featurebase.q = window.Featurebase.q || []).push(arguments);
};