Skip to content

Commit 0889199

Browse files
committed
[css-snap-size] Update sample
1 parent 4ca6ca1 commit 0889199

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

css-snap-size/examples/snap-height.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,12 @@ <h2>A long multi-line heading</h2>
140140
}
141141

142142
function checkChrome(min) {
143-
var minText = '<a href="https://www.google.com/chrome/browser/canary.html">Chrome Canary</a>, '
144-
+ min.join(".") + " or later";
143+
var minText = [
144+
["Chrome Beta", "https://www.google.com/chrome/browser/beta.html"],
145+
["Chrome Dev channel", "https://www.google.com/chrome/browser/desktop/index.html?extra=devchannel"],
146+
["Chrome Canary", "https://www.google.com/chrome/browser/canary.html"],
147+
].map(function (d) { return '<a href="' + d[1] + '">' + d[0] + '</a>'})
148+
.join(" or ") + ", " + min.join(".") + " or later";
145149
var chrome = /Chrome\/([\d.]+)/.exec(navigator.userAgent);
146150
if (!chrome)
147151
return "Open this page in " + minText + ".";

0 commit comments

Comments
 (0)