mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
update copyrights
This commit is contained in:
parent
4256332284
commit
4d8891fb74
@ -5,7 +5,7 @@
|
||||
* Date: @@date
|
||||
*
|
||||
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
||||
* Modified work Copyright (C) 2014 - 2015 by Anton Lavrenov (Konva)
|
||||
* Modified work Copyright (C) 2014 - 2017 by Anton Lavrenov (Konva)
|
||||
*
|
||||
* @license
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
@ -197,11 +197,12 @@
|
||||
var ua = userAgent.toLowerCase(),
|
||||
// jQuery UA regex
|
||||
match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
|
||||
/(webkit)[ \/]([\w.]+)/.exec(ua) ||
|
||||
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
|
||||
/(msie) ([\w.]+)/.exec(ua) ||
|
||||
(ua.indexOf('compatible') < 0 &&
|
||||
/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)) || [],
|
||||
/(webkit)[ \/]([\w.]+)/.exec(ua) ||
|
||||
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
|
||||
/(msie) ([\w.]+)/.exec(ua) ||
|
||||
ua.indexOf('compatible') < 0 &&
|
||||
/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
|
||||
[],
|
||||
// adding mobile flag as well
|
||||
mobile = !!userAgent.match(
|
||||
/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i
|
||||
@ -227,7 +228,7 @@
|
||||
? window
|
||||
: typeof WorkerGlobalScope !== 'undefined' ? self : {};
|
||||
|
||||
Konva.UA = Konva._parseUA((glob.navigator && glob.navigator.userAgent) || '');
|
||||
Konva.UA = Konva._parseUA(glob.navigator && glob.navigator.userAgent || '');
|
||||
|
||||
if (glob.Konva) {
|
||||
console.error(
|
||||
|
Loading…
Reference in New Issue
Block a user