I am trying to get FCM token in react js application. First thing i tried is to use messaging.useServiceWorker(registration) then use messaging.getToken() and it’s working fine on localhost for firefox and google chrome, but on an HTTPS live server it works fine on firefox but in chrome it throws an error: DOMException: Failed to execute ‘subscribe’ on ‘PushManager’: Subscription failed
Tag: google-chrome
Acrobat Javascript in Chrome: how to trigger a HTTP request? [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question I’m working on an intelligent PDF file. It’s supposed to send some simple data to a certain URL: However this doesn’t work if the PDF
WebHID API: reconnect device
Is it possible to “silently”(without calling navigator.hid.requestDevice) reconnect hid device after it was disconnected and connected with USB cable again? navigator.hid.getDevices is not an option, it doesn’t return device after it was disconnected. Answer Assuming that the device has a serial number so that the browser can recognize it when it reconnects and match it against the permission previously granted
How can I use github to host an external CSS file?
I uploaded my css to github, then went to the file on the site and clicked the raw option. I tried adding it to a webpage, but chrome is giving me the following errors: Resource interpreted as Stylesheet but transferred with MIME type text/plain: “https://raw.githubusercontent.com/me/my-repo/master/style.css”. and Cross-Origin Read Blocking (CORB) blocked cross-origin response https://raw.githubusercontent.com/me/my-repo/master/style.css with MIME type text/plain. See https://www.chromestatus.com/feature/5629709824032768
Console.log custom fonts in google chrome
I’ve been making game which is played in the browsers console, and I’m interested of the possibility of using custom fonts. I’m working with chrome and don’t really care about compatibility with other browsers. I know that console.log() can be styled with CSS, but I haven’t had any success with trying to get it to work with custom fonts. My
How do I change Chrome’s media notification background colors
I want to know how to change media notification colors in Google Chrome. Crunchyroll, Vimeo and Dailymotion media notifications Crunchyroll, Vimeo and Dailymotion have their unique media notifications. How can I change the background color of a media notification in Google Chrome? Answer The default color is like you said, the main favicon color. But you can customize the media
how to prevent force dark mode by system?
Dark/Light mode toggle settings on websites and app are tredning and there is a some system default theme mode also available like chrome dev-tools provide force dark-mode, but I want my website to be view in the way it has been built. So, How do I prevent the force dark-mode, applied by chrome? I have tried prefers-color-scheme media query, but
Clicking on a button or at the current position of mouse using JavaScript to keep Google Colab notebook alive
I am trying to keep the Google Colab notebook alive for few hours even if I go out for some time. People who have no idea should only know that if you don’t manually intervene then the processes stop and all of your work is lost. I want my mouse to keep clicking at the current position 12 hours at
code mirror html not working in chrome but working in other browsers
having some issue with Codemirror in chrome. it was working fine before but now its not working properly. the JavaScript code still works but not the html. please have a look. click here Answer Maybe because you are missing <!DOCTYPE html> declaration
Chrome, FileReader API, event.target.result === “”
I have a web app which does some processing on big text-files (> 500mb) via the FileReader API’s readAsText() method. It has been working great for years but suddenly I got empty responses: event.target.result is an empty string. 369MB works but 589MB does not work. I have tested on multiple computers; same result, however it does work in Firefox. Chrome