Update to bowser 2.7.0
This commit is contained in:
parent
621780c9cf
commit
cc14fbe36e
3 changed files with 5 additions and 647 deletions
|
@ -74,7 +74,7 @@ folder 'vendor/assets' do
|
|||
|
||||
folder 'javascripts' do
|
||||
file 'html5shiv.js', 'https://raw.githubusercontent.com/aFarkas/html5shiv/master/src/html5shiv.js'
|
||||
file 'bowser.js', 'https://github.com/lancedikson/bowser/releases/download/1.9.4/bowser.js'
|
||||
file 'bowser.js', 'https://github.com/lancedikson/bowser/releases/download/2.7.0/es5.js'
|
||||
end
|
||||
|
||||
folder 'swfobject' do
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
//= require querystring
|
||||
|
||||
$(document).ready(function () {
|
||||
var querystring = require("querystring-component");
|
||||
var querystring = require("querystring-component"),
|
||||
browser = bowser.getParser(window.navigator.userAgent);
|
||||
|
||||
var loaderTimeout;
|
||||
|
||||
|
@ -256,7 +257,7 @@ $(document).ready(function () {
|
|||
};
|
||||
|
||||
if (location.protocol === "http" ||
|
||||
bowser.check({ chrome: "53", firefox: "55" })) {
|
||||
browser.satisfies({ chrome: ">=53", firefox: ">=55" })) {
|
||||
url = "http://127.0.0.1:8111/load_and_zoom?";
|
||||
} else {
|
||||
url = "https://127.0.0.1:8112/load_and_zoom?";
|
||||
|
|
645
vendor/assets/javascripts/bowser.js
vendored
645
vendor/assets/javascripts/bowser.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue