mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-28 17:02:24 -05:00
Simplify agent renaming
This commit is contained in:
parent
0a56c7cef0
commit
900a207954
1 changed files with 1 additions and 3 deletions
|
@ -95,9 +95,7 @@ var PaperScope = Base.extend(/** @lends PaperScope# */{
|
|||
/^(node|trident)$/.test(n) ? rv : v1;
|
||||
agent.version = v;
|
||||
agent.versionNumber = parseFloat(v);
|
||||
n = n === 'trident' ? 'msie'
|
||||
: n === 'jsdom' ? 'node'
|
||||
: n;
|
||||
n = { trident: 'msie', jsdom: 'node' }[n] || n;
|
||||
agent.name = n;
|
||||
agent[n] = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue