Skip to content

Commit

Permalink
Merge pull request #10 from alexkim205/hotfix-9
Browse files Browse the repository at this point in the history
no media shown after login -> fixed
  • Loading branch information
alexkim205 committed Mar 25, 2019
2 parents 17d5f76 + ec6874b commit 842f244
Show file tree
Hide file tree
Showing 13 changed files with 472 additions and 15 deletions.
12 changes: 12 additions & 0 deletions .idea/Google-Drive-Electron.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

395 changes: 395 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Inside the zipped folder is an executable that can be run.

### Releases

- v.fugue-state / 0.1.0
- v.dean-town / 0.0.3
- v.funky-duck / 0.0.2
- v.aunt-leslie / 0.0.1
Expand Down
3 changes: 2 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# TODO
An incomprehensive list of features to work on.
A list of features to work on.

* Dark Mode
* Use Google Drive API to actually develop app features instead of just loading webview.
* Don't use <webview>
* ~~Fix Issue 9 - can't see files~~
* ~~Fix Cmd+Q button~~
* ~~Implement reload~~
* ~~Implement zoom~~
Expand Down
41 changes: 30 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gdelectron",
"productName": "Google Drive Electron",
"version": "0.0.3",
"version": "0.1.0",
"description": "A Google Drive desktop app made with Electron",
"main": "app.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/javascripts/childwindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ var createChildWindow = function(e) {
minHeight: 300,
scrollBounce: false,
show: false,
webPreferences: {
preload: path.join(path.join(app.getAppPath(), 'build/javascripts/preload')),
}
})

windowSettings = {
Expand Down
5 changes: 4 additions & 1 deletion src/javascripts/mainwindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ var createMainWindow = () => {
minWidth: 300,
minHeight: 300,
scrollBounce: false,
show: false
show: false,
webPreferences: {
preload: path.join(path.join(app.getAppPath(), 'build/javascripts/preload')),
}
})

/**
Expand Down
3 changes: 3 additions & 0 deletions src/javascripts/preload.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if (!window.chrome) {
window.chrome = {}
}
2 changes: 1 addition & 1 deletion src/templates/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ block dragcontent
block content

webview(preload='./preload.js', src='')
webview(preload='../javascripts/preload.js', src='')

block scripts
script.
Expand Down

0 comments on commit 842f244

Please sign in to comment.