mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
fix gist saving. 💣
This commit is contained in:
@@ -34,6 +34,8 @@ class Gist extends Editor
|
||||
files = {}
|
||||
files[@filename] = content: @code()
|
||||
$.ajax
|
||||
# Needed for CORS, otherwise we send an unparseable Origin
|
||||
headers: { origin: null }
|
||||
url: "https://api.github.com/gists/#{@id}"
|
||||
type: 'patch'
|
||||
contentType: 'application/json'
|
||||
|
||||
Reference in New Issue
Block a user