Skip to content

Commit

Permalink
Remove Google Chrome Frame from suggested browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
russellporter committed Mar 21, 2014
1 parent 679a5ec commit 7a0f154
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 26 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Default Options:
*/
},
// What browsers to display and their order
display: ['chrome', 'firefox', 'safari', 'opera', 'gcf', 'msie'],
display: ['chrome', 'firefox', 'safari', 'opera', 'msie'],
browserShow: true, // Should the browser options be shown?
browserInfo: { // Settings for which browsers to display
firefox: {
Expand All @@ -67,12 +67,6 @@ Default Options:
msie: {
text: 'Internet Explorer 9',
url: 'http://www.microsoft.com/windows/Internet-explorer/'
},
gcf: {
text: 'Google Chrome Frame',
url: 'http://code.google.com/chrome/chromeframe/',
// This browser option will only be displayed for MSIE
allow: { all: false, msie: true }
}
},

Expand Down
16 changes: 4 additions & 12 deletions doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
$('a[rel="external"]').click(function() {
var href = $(this).attr('href');

// Send external link event to Google Analaytics
// Send external link event to Google Analytics
try {
_gaq.push(['_trackEvent','External Links', href.split(/\/+/g)[1], href]);
} catch (e) {};
Expand Down Expand Up @@ -314,7 +314,7 @@ <h3>Default Options</h3>
*/
},
// What browsers to display and their order
display: ['chrome', 'firefox', 'safari', 'opera', 'gcf', 'msie'],
display: ['chrome', 'firefox', 'safari', 'opera', 'msie'],
browserShow: true, // Should the browser options be shown?
browserInfo: { // Settings for which browsers to display
firefox: {
Expand All @@ -336,12 +336,6 @@ <h3>Default Options</h3>
msie: {
text: 'Internet Explorer 9',
url: 'http://www.microsoft.com/windows/Internet-explorer/'
},
gcf: {
text: 'Google Chrome Frame',
url: 'http://code.google.com/chrome/chromeframe/',
// This browser option will only be displayed for MSIE
allow: { all: false, msie: true }
}
},

Expand Down Expand Up @@ -518,12 +512,10 @@ <h3>Demo #4: Customize Browsers To Suggest</h3>

<p>
Using the <em class="option">display</em> option, you can define
which browsers to suggest, and the order in which to suggest them.<br />
<acronym title="Google Chrome Frame">GCF</acronym> is supported,
but only displayed for IE users by default.
which browsers to suggest, and the order in which to suggest them.
</p>
<p>
<strong>Default:</strong> ['firefox','chrome','msie','safari','opera','gcf']
<strong>Default:</strong> ['firefox','chrome','msie','safari','opera']
</p>

<pre name="code" class="javascript">
Expand Down
Binary file removed images/browser_gcf.gif
Binary file not shown.
8 changes: 1 addition & 7 deletions js/jquery.reject.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ $.reject = function(options) {
msie: {
text: 'Internet Explorer 9',
url: 'http://www.microsoft.com/windows/Internet-explorer/'
},
gcf: {
text: 'Google Chrome Frame',
url: 'http://code.google.com/chrome/chromeframe/',
// This browser option will only be displayed for MSIE
allow: { all: false, msie: true }
}
},

Expand Down Expand Up @@ -112,7 +106,7 @@ $.reject = function(options) {

// Set default browsers to display if not already defined
if (opts.display.length < 1) {
opts.display = ['chrome','firefox','safari','opera','gcf','msie'];
opts.display = ['chrome','firefox','safari','opera','msie'];
}

// beforeRject: Customized Function
Expand Down

0 comments on commit 7a0f154

Please sign in to comment.