Skip to content

Commit

Permalink
background work to add logo as default favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
HebeHH committed Mar 21, 2024
1 parent 9595051 commit 4b55eed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file added assets/default-favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,9 @@ async function runWizard() {
const urlPattern = /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/;
wizardState.faviconUrl = await input({
message:
"Choose your own favicon! Otherwise the default will be: 📄\nPlease provide a URL only.",
"Choose your own favicon! \nPlease provide a URL only.",
default: "https://static.vecteezy.com/system/resources/previews/006/692/271/non_2x/document-icon-template-black-color-editable-document-icon-symbol-flat-illustration-for-graphic-and-web-design-free-vector.jpg",
// change the default to the permanent raw URL of assets/default-favicon.png, once on github
validate: (favicon_url) => {
if (!urlPattern.test(favicon_url.trim())) {
console.log( "hi")
Expand Down

0 comments on commit 4b55eed

Please sign in to comment.