Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Some of us didn't set proper permission for script tags to work: Shopify#294 (comment)
  • Loading branch information
knagode authored Mar 27, 2017
1 parent 28aea8d commit c192efc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,12 @@ ShopifyApp.configure do |config|
end
```

You also need to have write_script_tags permission in the config scope in order to add script tags automatically:

```ruby
config.scope = '... , write_script_tags'
```

Scripttags are created in the same way as the Webhooks, with a background job which will create the required scripttags.

If `src` responds to `call` its return value will be used as the scripttag's source. It will be called on scripttag creation and deletion.
Expand Down

0 comments on commit c192efc

Please sign in to comment.