mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -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;
|
/^(node|trident)$/.test(n) ? rv : v1;
|
||||||
agent.version = v;
|
agent.version = v;
|
||||||
agent.versionNumber = parseFloat(v);
|
agent.versionNumber = parseFloat(v);
|
||||||
n = n === 'trident' ? 'msie'
|
n = { trident: 'msie', jsdom: 'node' }[n] || n;
|
||||||
: n === 'jsdom' ? 'node'
|
|
||||||
: n;
|
|
||||||
agent.name = n;
|
agent.name = n;
|
||||||
agent[n] = true;
|
agent[n] = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue