Skip to content

Commit

Permalink
fix wrong variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Butusov committed Oct 22, 2016
1 parent 2371585 commit 21fa548
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sass-inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import CssUrlRewriter from 'css-url-rewriter-ex';
import resolvePath from './resolve-path';

function injectStyle(css, address) {
if (url) {
if (address) {
const style = document.querySelector(`style[data-url="${address}"]`);
if (style) {
style.remove();
Expand All @@ -23,8 +23,8 @@ function injectStyle(css, address) {
const style = document.createElement('style');
style.type = 'text/css';

if (url) {
style.setAttribute('data-url', url);
if (address) {
style.setAttribute('data-url', address);
}

if (style.styleSheet) {
Expand Down

0 comments on commit 21fa548

Please sign in to comment.