Skip to content

Commit 4ee0e47

Browse files
committed
address #23
1 parent 80ddc96 commit 4ee0e47

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vertical-tabs-chrome-extension",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"description": "A chrome extension that presents your tabs vertically.",
55
"license": "MIT",
66
"repository": {

src/pages/Content/modules/frame/frame.jsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export class Frame extends Component {
7272
isDragging: false,
7373
width: 320,
7474
height: '100%',
75+
loaded: false,
7576
};
7677

7778
static defaultProps = {
@@ -162,6 +163,8 @@ export class Frame extends Component {
162163
onLoad = () => {
163164
const { onLoad } = this.props;
164165

166+
this.setState({ loaded: true });
167+
165168
onLoad({
166169
mask: this.mask,
167170
frame: this.frame,
@@ -340,9 +343,11 @@ export class Frame extends Component {
340343
[iframeClass]: true,
341344
})}
342345
style={{
343-
backgroundImage: `url(${chrome.extension.getURL(
344-
'iframe-background.gif'
345-
)})`,
346+
backgroundImage: !this.state.loaded
347+
? `url(${chrome.extension.getURL(
348+
'iframe-background.gif'
349+
)})`
350+
: null,
346351
backgroundPosition: 'center',
347352
backgroundRepeat: 'no-repeat',
348353
height: '100vh',

0 commit comments

Comments
 (0)