Skip to content

Commit

Permalink
Merge pull request beeware#527 from ilankham/add-safari-support
Browse files Browse the repository at this point in the history
Add workaround for Safari 9 Support
  • Loading branch information
glasnt committed May 24, 2017
2 parents 5a4364e + 7810781 commit d957318
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions batavia/core/types/PYCFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ var constants = require('../constants')
*************************************************************************/

var PYCFile = function(data) {
if (!Uint8Array.prototype.slice) {
Object.defineProperty(Uint8Array.prototype, 'slice', { // eslint-disable-line no-extend-native
value: Array.prototype.slice
})
}
Object.call(this)
this.magic = data.slice(0, 4)
this.modtime = data.slice(4, 8)
Expand Down

0 comments on commit d957318

Please sign in to comment.