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

Commit

Permalink
Fix error after bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
wiljanslofstra committed Oct 8, 2017
1 parent fe1d696 commit c7ed73d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Smartsheet
# Smartsheet Electron app

_This app is not affiliated to Smartsheet Inc._

Expand Down
3 changes: 1 addition & 2 deletions analytics.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const uuidV4 = require('uuid/v4');
const uuidV4 = require('./uuidv4');

const ID = 'UA-107704260-1';

Expand Down Expand Up @@ -26,7 +26,6 @@ module.exports = {
fetch(`${base}&${params.join('&')}`)
.then((response, body) => {
if (response && response.status === 200) {
console.log(response);
this.saveClientID(tempId);
}
})
Expand Down
2 changes: 1 addition & 1 deletion browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const isLoading = false;

onload = function() {
const webview = document.querySelector('webview');
const css = fs.readFileSync(path.join(__dirname, 'assets', 'overwrite.css'));
const css = fs.readFileSync(path.join(__dirname, 'assets/overwrite.css'));

document.querySelector('#back').onclick = function() {
webview.goBack();
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,5 @@
"electron": "~1.7.8",
"electron-packager": "^9.1.0",
"electron-reload": "^1.2.2"
},
"dependencies": {
"uuid": "^3.1.0"
}
}
14 changes: 14 additions & 0 deletions uuidv4.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = () => {
var uuid = "", i, random;

for (i = 0; i < 32; i++) {
random = Math.random() * 16 | 0;

if (i == 8 || i == 12 || i == 16 || i == 20) {
uuid += "-"
}
uuid += (i == 12 ? 4 : (i == 16 ? (random & 3 | 8) : random)).toString(16);
}

return uuid;
};
9 changes: 1 addition & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -385,13 +385,6 @@ electron-download@^4.0.0:
semver "^5.3.0"
sumchecker "^2.0.1"

electron-google-analytics@^0.0.17:
version "0.0.17"
resolved "https://registry.yarnpkg.com/electron-google-analytics/-/electron-google-analytics-0.0.17.tgz#c79e9821780c3b96d1c28aa926797894e42de63f"
dependencies:
request "^2.81.0"
uuid "^3.1.0"

electron-osx-sign@^0.4.1:
version "0.4.7"
resolved "https://registry.yarnpkg.com/electron-osx-sign/-/electron-osx-sign-0.4.7.tgz#1d75647a82748eacd48bea70616ec83ffade3ee5"
Expand Down Expand Up @@ -1488,7 +1481,7 @@ request@2.81.0:
tunnel-agent "^0.6.0"
uuid "^3.0.0"

request@^2.45.0, request@^2.79.0, request@^2.81.0, request@^2.83.0:
request@^2.45.0, request@^2.79.0:
version "2.83.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.83.0.tgz#ca0b65da02ed62935887808e6f510381034e3356"
dependencies:
Expand Down

0 comments on commit c7ed73d

Please sign in to comment.