Skip to content

Commit

Permalink
put is_safari next to is_android
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Apr 29, 2018
1 parent 75634da commit 6ad14f0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
7 changes: 4 additions & 3 deletions js/jquery.terminal-1.14.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* Copyright (c) 2007-2013 Alexandru Marasteanu <hello at alexei dot ro>
* licensed under 3 clause BSD license
*
* Date: Sun, 29 Apr 2018 07:55:11 +0000
* Date: Sun, 29 Apr 2018 08:25:28 +0000
*/

/* TODO:
Expand Down Expand Up @@ -2632,6 +2632,8 @@
// -------------------------------------------------------------------------
var is_android = navigator.userAgent.toLowerCase().indexOf('android') !== -1;
// -------------------------------------------------------------------------
var is_safari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
// -------------------------------------------------------------------------
var strlen = (function() {
if (typeof wcwidth === 'undefined') {
return function(string) {
Expand Down Expand Up @@ -2868,7 +2870,7 @@
}
$.terminal = {
version: 'DEV',
date: 'Sun, 29 Apr 2018 07:55:11 +0000',
date: 'Sun, 29 Apr 2018 08:25:28 +0000',
// colors from http://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -7126,7 +7128,6 @@
if (settings.height) {
self.height(settings.height);
}
var is_safari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
// scrollTop need be on html but scrollHeight taken from body
// on Safari both on body it's easier to just put both in selector and it works
if (self.is('body') && !is_safari) {
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal-1.14.0.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -2632,6 +2632,8 @@
// -------------------------------------------------------------------------
var is_android = navigator.userAgent.toLowerCase().indexOf('android') !== -1;
// -------------------------------------------------------------------------
var is_safari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
// -------------------------------------------------------------------------
var strlen = (function() {
if (typeof wcwidth === 'undefined') {
return function(string) {
Expand Down Expand Up @@ -7126,7 +7128,6 @@
if (settings.height) {
self.height(settings.height);
}
var is_safari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
// scrollTop need be on html but scrollHeight taken from body
// on Safari both on body it's easier to just put both in selector and it works
if (self.is('body') && !is_safari) {
Expand Down
7 changes: 4 additions & 3 deletions js/jquery.terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* Copyright (c) 2007-2013 Alexandru Marasteanu <hello at alexei dot ro>
* licensed under 3 clause BSD license
*
* Date: Sun, 29 Apr 2018 07:55:11 +0000
* Date: Sun, 29 Apr 2018 08:25:28 +0000
*/

/* TODO:
Expand Down Expand Up @@ -2632,6 +2632,8 @@
// -------------------------------------------------------------------------
var is_android = navigator.userAgent.toLowerCase().indexOf('android') !== -1;
// -------------------------------------------------------------------------
var is_safari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
// -------------------------------------------------------------------------
var strlen = (function() {
if (typeof wcwidth === 'undefined') {
return function(string) {
Expand Down Expand Up @@ -2868,7 +2870,7 @@
}
$.terminal = {
version: 'DEV',
date: 'Sun, 29 Apr 2018 07:55:11 +0000',
date: 'Sun, 29 Apr 2018 08:25:28 +0000',
// colors from http://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -7126,7 +7128,6 @@
if (settings.height) {
self.height(settings.height);
}
var is_safari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
// scrollTop need be on html but scrollHeight taken from body
// on Safari both on body it's easier to just put both in selector and it works
if (self.is('body') && !is_safari) {
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal.min.js

Large diffs are not rendered by default.

0 comments on commit 6ad14f0

Please sign in to comment.