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

Commit

Permalink
fix: browser css, clear render, css names, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
zachferland committed May 22, 2020
1 parent 03d1169 commit 0f0a0a0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 4 deletions.
Binary file added iframe/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions iframe/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ button {

.primaryButton {
color: $threeIdOrange;
background-color: white;
border: none;
}

.secondaryButton {
Expand Down
1 change: 1 addition & 0 deletions iframe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ let closecallback

window.hideIframe = () => {
idwService.hideIframe()
root.innerHTML = ``
if (closecallback) closecallback()
}

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"build:dist:prod": "./node_modules/.bin/webpack --config webpack.config.js --mode=production --output-filename index.js",
"build": "npm run build:dist:prod; npm run build:es5;",
"prepublishOnly": "npm run build:es5",
"prepare": "npm run build:es5",
"server:start": "http-server -c-1 -p 30001 public",
"start": "npm run build:dist:watch & npm run server:start"
},
Expand Down
2 changes: 1 addition & 1 deletion src/authProvider/ethereumAuthProvider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createLink, authenticate } from '3id-blockchain-utils/src/index' //TODO
import { createLink, authenticate } from '3id-blockchain-utils'
import AbstractAuthProvider from './abstractAuthProvider'

/**
Expand Down
3 changes: 2 additions & 1 deletion src/threeIdConnectService.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ class ThreeIdConnectService {
*/
async hideIframe() {
store.remove('error') //TODO move, so specific to iframe implementation
root.innerHTML = ``
return this.hide()
}

Expand Down Expand Up @@ -182,7 +183,7 @@ class ThreeIdConnectService {
* @return {String} response message string
*/
async providerRelay(message) {
const domain = new Url(document.referrer).hostname
const domain = new Url(document.referrer).host
let loop = true

const responsePromise = new Promise(async (resolve, reject) => {
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = {
options: {
sourceMap: true,
modules: true,
// localIdentName: "[local]___[hash:base64:5]"
localIdentName: "[local]"
}
},
{
Expand All @@ -57,4 +57,4 @@ module.exports = {
tls: 'empty',
child_process: 'empty'
}
};
};

0 comments on commit 0f0a0a0

Please sign in to comment.