Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
use a default github token for accessing gist
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Apr 3, 2014
1 parent 9987363 commit 27b6e37
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,15 @@
</section>
</polymer-ui-pages>
<x-dom-serializer id="serializer"></x-dom-serializer>
<github-element id="github" on-files-loaded="{{documentLoaded}}" on-files-saved="{{documentSaved}}" on-token-changed="{{tokenChangeHandler}}"></github-element>
<github-element id="github" token="{{githubToken}}" on-files-loaded="{{documentLoaded}}" on-files-saved="{{documentSaved}}" on-token-changed="{{tokenChangeHandler}}"></github-element>
</template>

<script>
Polymer('designer-element', {
selected: 'design',
remoteHtml: '',
fileName: 'designer.html',
githubToken: '77777d8808da580cd6134b7390b5fd306c66d1d6',
ready: function() {
document.addEventListener('keydown',
this.KeydownAndPromptForUnload.bind(this, window));
Expand Down Expand Up @@ -222,12 +223,11 @@
saveAction: function() {
var options = {};
options[this.fileName] = {content: this.html};
// TODO(sorvell): update just 404's =(
/*if (this.fileId) {
if (this.fileId) {
this.$.github.update(this.fileId, 'designer', true, options);
} else {*/
} else {
this.$.github.save('designer', true, options);
//}
}
},
shareAction: function() {
this.sharing = true;
Expand Down

0 comments on commit 27b6e37

Please sign in to comment.