In VS code, whenever I save a file in Html its being saved as Brave Html document when I actually want it to save as Chrome Html doc. How to do it? - html

Earlier I used to have Brave as my default browser and installed vs code using Brave browser. I then uninstalled vs code and reinstalled it from chrome browser. Still I'm getting the same problem.

Right click then click open with and choose more apps and select chrome then select always open with chrome and tada.

Related

Edge Chromium xlsm issue

On a web application we manage, there is an issue only present in Edge Chromium. There is a button to download a file: an Excel macro file. When clicking the button in Edge, the file is opened in Excel. However, the login page of the webapplication appears in the XLSM file in Excel, instead of opening the xlsm file itself. In Google Chrome, the file is not opened, but downloaded first and when clicking open, we get the wanted behaviour.
This is the code behind the button (confidential data replaced by XXX):
<input type="submit" onclick="redirectToNavUrlGA('https://XXX.xlsm','XXX','XXX','XXXXXX'); return false;" value="XXXXXX">
When calling the URL directly in a cache cleared-Edge browser, the login page appears in browser and the file is downloaded correctly. Only when you are already logged in the to application, the issue is present. But users will always be logged in already, so not a good workaround.
The URL is using reverse proxy to point to a Sharepoint 2010 site to download the file. I've read some issues with Edge Chromium and SP 2010, is this maybe the cause of the issue?
Do you have any other ideas that could be causing this issue?
Thanks in advance.
According to your description, I think the main problem is the compatibility issue between SharePoint 2010 and Edge. The Edge browser is not included in SharePoint 2010 browser support, and even Edge IE 11 mode is not supported. So I suggest that you can use a supported browser.

file not found error in chrome for html code

I have been trying to open html file from my desktop folder using chrome. It shows file_not_found it may be deleted or moved. But same is getting open in Edge browser. I'm using windows 10. code written in VS Code editor. Need help. I'm a beginner in programming language.
Install a live-server extension in VS code then you can serve your page from there
You can download from the extensions tab by searching live Server by ritwickdey or
use this link https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer

Why does Google Chrome only displays the first page a pdf file?

I'm facing a problem with Google Chrome. One of my PDF only shows the first page and the rest looks as following:
Example:
First page is displayed normaly.
It recognizes the amount of pages in the PDF.
If I download the PDF, it is completely fine and useable, I even can open it in Chrome and it works fine. The problem doesn't occur on Firefox or Safari.
I'm using Google Chrome Version 85.0.4183.83 (Official Build) (64-bit)
Thanks for your help.
I experienced the same issue (but with another website). After investigation, it appears that this has something to do with SameSite cookies.
You can fix it by setting this flag to Disabled then restart Chrome:
chrome://flags/#same-site-by-default-cookies
Update: Found an issue in the Chromium bug tracker related to this problem:
https://bugs.chromium.org/p/chromium/issues/detail?id=961617
This issue appears to be caused by a conflict between Chrome and Fast Web View pdf optimisation. To fix it you need to turn off the optimisation within your pdf program settings and save the file again (in Adobe products this is located Preferences>Documents>Save Settings - uncheck Save As optimizes for Fast Web View). Pdf files which don't include this optimisation render all pages correctly.

When I open an html file from MacOS Finder, why is chrome only opening a blank window/tab?

I am having trouble getting Chrome to open html files from MacOS Finder. This includes double-clicking or right clicking and selecting open. These actions result in opening or making Chrome the active application, but not opening the html file. Does anyone have any ideas on how to fix this? It didn't start after an update or any detectible change in how I work. It seems totally random.
Here's what I've tried:
opening multiple html files created in different applications (sublime, dreamweaver, atom, etc.)
deleting Chrome preferences
resetting all Chrome settings
running all possible updates
restarting Chrome and computer
Here's what does work:
opening files from within Chrome via File>Open File
opening a new tab or window in Chrome and dragging an html file into it
opening html files in Firefox and Safari by all available methods without encountering the issue I'm experiencing with Chrome.
Thank you!
Recreating the Sublime Text preference file resolved the issue. Admittedly I feel kinda dumb for not doing this in my first round of troubleshooting, but at least I did it now! Hopefully this at least helps some other people out there with the same issue.

polymer only works when launched with chrome dev editor

It's more of a question of why rather than please fix this. Polymer elements are made for websites, not just chrome apps, right? So why when I open the html file with chrome does it not work but when I run it with chrome dev editor and it opens with chrome does it work? I'd like to build a website using polymer elements, and I'm more than happy to use chrome dev editor, I just wanna know how it'll work if I try to publish.
In order to run a website or webpage that is build with Polymer you will need a server.
Chrome Dev Editor provides a local server when we try to run our code, thus it works from Chrome Dev Editor. However when you open the html file with chrome there is no server set up.
When you run using Chrome Dev Editor you can see in address bar something like this http://127.0.0.1:31999/test/test.html
However when you try opening the html file in chrome you can see in address bar something like this file:///D:/Users/test/test.html
If you don't want Chrome Dev Editor to run your code then you can have local server set up using NodeJS etc. Or use editors like Brackets - it will set up a local server and run your webpage in browser.