Skip to content

Commit

Permalink
Merge pull request #63 from gulliverhan/master
Browse files Browse the repository at this point in the history
sets baseUrl from data supplied by background.js rather than deriving it
  • Loading branch information
leonhartX authored Mar 19, 2018
2 parents cc39616 + 0b47a83 commit aefd88c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/gas-hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,11 +516,7 @@ function handleGistCreated() {
}

function getBaseUrl() {
if(context.isBound) {
return `https://script.google.com/macros/d/${context.projectId}/gwt/`;
} else {
return `https://script.google.com/d/${context.id}/gwt/`
}
return context.gasHeaders["X-GWT-Module-Base"];
}

function changeModalState(type, toShow) {
Expand Down

0 comments on commit aefd88c

Please sign in to comment.