Skip to content

Commit 32942e1

Browse files
authored
Update index.js
In Cordova, the default Scheme is 'app://', but loadGapiInsideDOM assumes a 'http' or 'https' default. This will be fine for our web app (called WebApp) and for our Cordova app (called WeVoteCordova)
1 parent 0a557c4 commit 32942e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const loadGapiInsideDOM = async function () {
6565
const element = document.getElementsByTagName('script')[0];
6666
  const js = document.createElement('script');
6767
js.id = 'google-platform';
68-
js.src = '//apis.google.com/js/platform.js';
68+
js.src = 'https://apis.google.com/js/platform.js';
6969
js.async = true;
7070
js.defer = true;
7171
element.parentNode.insertBefore(js, element);

0 commit comments

Comments
 (0)