Skip to content

Commit

Permalink
Adapt to Paw JS API version 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mittsh committed Sep 10, 2015
1 parent 7d76f44 commit c2cebcc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion HexToBase64DynamicValue.coffee
@@ -1,4 +1,10 @@
require "b64.js"
# in API v0.2.0 and below (Paw 2.2.2 and below), require had no return value
((root) ->
if root.bundle?.minApiVersion('0.2.0')
root.base64js = require("./b64")
else
require("b64.js")
)(this)

HexToBase64DynamicValue = () ->

Expand Down

0 comments on commit c2cebcc

Please sign in to comment.