diff --git a/README.md b/README.md index f3fe07a8..b13c3e8d 100644 --- a/README.md +++ b/README.md @@ -43,16 +43,16 @@ yarn add bnc-assist #### Script Tag The library uses [semantic versioning](https://semver.org/spec/v2.0.0.html). -The current version is 0.5.1. +The current version is 0.5.2. There are minified and non-minified versions. Put this script at the top of your `
` ```html - + - + ``` ### Initialize the Library diff --git a/package.json b/package.json index f7a85480..d043f33f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-assist", - "version": "0.5.1", + "version": "0.5.2", "description": "Blocknative Assist js library for Dapp developers", "main": "lib/assist.min.js", "scripts": { diff --git a/src/js/index.js b/src/js/index.js index 7c39f6a1..0f42b734 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -25,7 +25,7 @@ import { import assistStyles from '../css/styles.css' // Library Version - if changing, also need to change in package.json -const version = '0.5.1' +const version = '0.5.2' function init(config) { updateState({ version }) diff --git a/src/js/views/dom.js b/src/js/views/dom.js index f742f712..3f951d7b 100644 --- a/src/js/views/dom.js +++ b/src/js/views/dom.js @@ -122,7 +122,9 @@ export function browserLogos() { export function onboardBranding() { const { blockNativeLogo, blockNativeLogoLight } = imageSrc - const { darkMode } = state.config.style + const { style } = state.config + const darkMode = style && style.darkMode + return `Powered by @@ -141,7 +143,8 @@ export function onboardBranding() { export function notSupportedModal(type) { const info = notSupported[`${type}NotSupported`] - const { darkMode } = state.config.style + const { style } = state.config + const darkMode = style && style.darkMode return `