I learned about the tag’s custom target attribute during the technical weekly meeting, and here is my note.

MDN Specification

HTML target

Where to display the linked URL as the name for a browsing context (a tab, window, or <iframe>). The following keywords have special meanings for where to load the URL: _self, _blank, _parent, _top.

Read more »

What the bug is

When accessing the web page in Chrome, everything is normal, but the page crashes directly when the developer tools are opened. If the page is refreshed with the developer tools open, it crashes but usually loads and runs when the developer tools are closed.

Version: Chrome v130.0.6723.70. Version v129 usually works.

Code Analysis

Read more »

In projects, we often use many third-party NPM packages, such as Mousetrap. We usually encounter bugs that have not yet been fixed or merged by the official repository. So, what should we do in such cases? Here is a summary of the methods.

Fork the Repository and Follow the PR Process

You can fork the repository, modify the source code, submit a PR, and wait for the official team to merge and release a new package. This method is undoubtedly the best; it benefits and gives back to the community.

However, this approach’s downside is also quite noticeable. If the official longed and we urgently need the package, this solution may not be very suitable.

Adjust NPM Dependency Version

Read more »

When selecting a folder on Mac, right-clicking, and choosing to compress, the resulting ZIP package reports an error when submitted to the Chrome Store.

There was a problem uploading your file. Please try again.
Invalid package. Please make sure it is a valid zip file and the file manifest.json is at the root directory of the zip package.

Following the error message guidance:

  1. The ZIP package is invalid.
  2. The root directory of the ZIP package lacks the manifest file.

Troubleshooting

Read more »

I got the Apple Watch S4 in November 2018 and have used it for almost six years. The battery health has dropped to 77%. Considering that the latest Watch OS11 no longer supports the S4 and has been used for a long time, I decided to get the S10.

After using the S10 for a few days, I’ve compiled the pros and cons for your reference.

Purchased Version

First, let me explain the version I bought.

  • My S4 was the GPS 44mm version; this time, I chose the GPS 46mm version (the new version only comes in 42mm and 46mm).
  • Since the mainland China doesn’t support fast charging, I opted for another version. I chose the Macao version, priced at 3499MOP, equivalent to 3132CNY.
  • As for the color, I went with glossy black. Regarding paint chipping, I’ll have to see after using it for a while.
Read more »
0%