addyosmani / addyosmani/timing.js
Bookmarklet code broken in Firefox
- Ngôn ngữ chính
- JavaScript
- Star
- 1.5k
- Fork
- 110
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
The `javascript:!function () { … }();` format is not compatible with Firefox. I propose switching to `javascript:(function () { … }());`. (I'm referring to the Bookmarklet code displayed in the README.)
If a `javascript:!function…` bookmarklet is executed in Firefox, its code is loaded and executed inside the address bar, which in turn kills the current page. I guess, this is due to the code evaluating to `true`, unlike `javascript:(function…` which evaluates to `undefined`.
Note: This could be Windows-specific. Test here: http://jsfiddle.net/tot41ndo/ (drag into Bookmarks bar to test)
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.