Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion svg.import.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@
if (this._importStore[key]) {
var oldKey = key
key += Math.round(Math.random() * 1e16)
console.warn('Encountered duplicate id "' + oldKey + '". Changed store key to "' + key + '".')
if(console && console.log)
console.warn('Encountered duplicate id "' + oldKey + '". Changed store key to "' + key + '".')
}

this._importStore[key] = element
Expand Down