VueJS functions properly on Google Chrome, however it may encounter compatibility issues when using

I am currently working on a VueJs app resembling an auction, with the backend powered by Laravel. Everything runs smoothly when I test it on Chrome, but for some reason, Safari seems to be giving me trouble.

The app consists of two main components:

  • DealerAuction.vue
    • Timer.vue (nested within DealerAuction)

DealerAuction Component:

<template>
  <div class="flex flex-col items-center b p-10 rounded shadow-lg bg-white">
    // Content omitted for brevity 
  </div>
</template>

<script>
import Timer from "./Timer.vue";

export default {
  name: "DealerAuction",
  components: {
    Timer,
  },

  props: ["id", "bidder_id", "starting", "ending"],
  data() {
    // Data configuration and methods definition 
  },
};
</script>

Below is the code snippet for Timer.vue:

<template>
  <div>
    // Code for displaying timer and status messages  
  </div>
</template>

<script>
export default {
  props: ["auction", "trans", "endedParent", "beforeParent", "runningParent", "starttime", "endtime"],"`),
  data: function () {
    // Initializing data properties 
  },
</script>

<style>
// Component styling goes here
</style>

No errors are showing up in the console related to these components, yet Safari seems to have trouble rendering them correctly.

If anyone has insights or solutions, please share. I'm at a loss and would appreciate any assistance.

Thank you all for your help!

Answer №1

Unfortunately, the Developer build faces issues in Safari due to missing poly-fillers when running your application locally. The error encountered while using serve was related to Promise's; Safari requires poly-fillers for Promises.

On the other hand, the production build is expected to function properly as any necessary poly-fills would have been integrated into it during compilation.

This incident shed light on my negative experience with Apple products.

A quick note regarding Apple devices: their stringent policy mandates that all 3rd party browsers must use Apple's web rendering engine. Hence, Chrome, Firefox, etc., are essentially just overlays with additional features, meaning they do not operate on Chromium or Mozilla engines like on other platforms.

Answer №2

By implementing momentJS, the issue was successfully resolved. It turns out that Date() has a varying format on Safari, causing it to be unable to accurately determine the time difference between starttime, current time, and endtime.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Tips for incrementing a number by 1 at random intervals using jQuery

Is there a way to increase a number by 1 after an unpredictable delay? For instance, starting with a base value of 10, can we have it change by 1 after a random amount of time (e.g. between 1 and 5 seconds)? I attempted the following code: var ...

I'm facing an issue where the data I retrieved is not displaying properly in my template within nuxt 3

After fetching data from an api, I can see it logged in my async function. However, the data stored in my array is not rendering on my template in Nuxt 3 The script setup includes: //ARRAY OF ALL THE DAILY WEATHER DATA PER DAY let allDataWeather=[]; ( ...

Showing all elements on page load that are currently being filtered out in React

I've created a page that displays a grid of images with various details like title, description, author, and more. All this data is being pulled from my SQL table (referred to as marketplaceData). To enhance user experience, I added a search bar to f ...

Enhance your JavaScript code by replacing Promise syntax with Async syntax and utilizing map() instead of a traditional For

I have a code snippet here that is functioning properly. However, I am interested in converting the Promise code in the middle of the function to Async code and replacing the for loop with map(). Can someone guide me on how to achieve this transformation ...

Waiting for a webpage to fully load with JavaScript in Selenium

I am facing an issue where I need to wait for the page to fully load before executing a certain action. It is important for me that the loading circle on the browser tab stops spinning before proceeding. The current Ajax function I am using does not work c ...

The Resharper guideline "Function Parameter" doesn't allow the usage of AngularJS service names

I have a question regarding naming conventions in my AngularJS app. Currently, all my service names start with an uppercase character. However, I am facing an issue where service parameters must match the service name, but Resharper's JavaScript "Func ...

Unable to display JSON results in a tabular format

After successfully implementing the AJAX method in jQuery, I am able to receive a response. However, I am encountering difficulties when trying to display the arrays in a table format. success:function(resp){ var json =JSON.parse(JSON.stringif ...

`Setting the response as an ArrayBuffer can be achieved on the client side, but it cannot be

I am working on a client-side form where I use XMLHTTPResponse to save response data as a file. In order to achieve this, the response type is set to arraybuffer using the following code: xhr.responseType = "arraybuffer"; While researching various method ...

How to Conceal the <th> Tag with JavaScript

I attempted to conceal certain table elements using JavaScript. For <td> elements, it works fine: function hide(){ var x=document.getElementsByTagName('td'); for(var i in x){ x[i].style.visibility='hidden'; ...

Generating a JSON array from a C# collection can be achieved by utilizing the System.Web.Script.Serialization

Can someone help me with this code snippet? var httpWebRequestAuthentication = (HttpWebRequest)WebRequest.Create("http://api"); httpWebRequestAuthentication.ContentType = "application/json"; httpWebRequestAuthentication.Accept ...

What is the process of utilizing multiple npm registries within Yarn?

Currently, I am facing a challenge while setting up Yarn 0.17.9 in our environment due to issues with our registry setup. Our environment involves two registries - the official npmjs registry and our own internal network registry (Sinopia). The main issue ...

Enhance Your Website with HTML and JavaScript

Here is the code snippet I am working with: sTAT **javascript** var acc = document.getElementsByClassName("item-wrapper"); var i; for (i = 0; i < acc.length; i++) { acc[i].onclick = function(){ this.classList.toggle("selected"); this.nextElementS ...

Struggling to navigate the world of Nuxtjs and graphql

Having trouble with v-for and iterating through nested objects in Nuxtjs, Strapi, and GraphQL Received this object from GraphQL: "fotografies": { "data": [ { "id": "1", "attributes&qu ...

The $postLink() method in the controller is encountering a null value for this.$scope

class pageController { constructor($scope, MyEditableGrid) { this.$scope = $scope; this.MyEditableGrid = MyEditableGrid; this.myEditableGrid = { appScope: this.$scope, ..... } } $postLink ...

What is the best way to perform calculations within a PHP loop for <input> elements and then display the results using a JavaScript loop?

Hello everyone, I'm currently struggling with displaying the calculations from a loop of input tags. What I'm trying to achieve is having 5 rows with input fields. At the end of each row, there should be a span area that displays the calculation ...

Todo list application experiences a crash on Heroku platform while working perfectly fine on local machine

I recently downloaded the source code from this link, ran it locally and everything worked perfectly: When I tried to upload the code via Github, the process went smoothly. However, upon loading the page, I encountered an Application error. Heroku displa ...

Element remains hidden until the developer console is activated

On my website, I've noticed that certain LayerSlider elements are remaining invisible until: The window is resized I disable the Bookmarks bar in Chrome (quite strange, right?) I switch on the Chrome debugger tools This issue is not exclusive to Ch ...

Disabling a button based on the result of a database query

Is there a way to dynamically enable or disable a button based on the result of a database query in JavaScript? I have managed to display an error message (with id="error") depending on the result, but toggling the button (with id="generate") doesn't ...

Exploring the Express problem with AWS SNS web service subscriptions using a Sinatra case study

I'm currently working on developing an auto-subscription API that sends back a token via POST. While I have successfully implemented this in Sinatra (rendering the POSTed JSON from AWS), I'm facing challenges with Express. I believe it's jus ...

Avoid Conversion of HTML Entities in Table Cells

<table> <tr> <td>&gt;</td> </tr> <tr> <td>&&#xfeff;GT</td> </tr> </table> In the code snippet above, I have table cells containing HTML entities. A re ...