Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Nov 21, 2024
1 parent 0c93c00 commit 56d6d91
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1889,10 +1889,8 @@ ${this.opts.multipage ? `<li><span>Navigate to/from multipage</span><code>m</cod

/** @internal */
public setMetaViewport() {
let current = this.spec.doc.querySelector('meta[name=viewport]');

if (!current) {
let metaViewport = this.spec.doc.createElement('meta');
if (!this.spec.doc.querySelector('meta[name=viewport]')) {
const metaViewport = this.spec.doc.createElement('meta');
metaViewport.setAttribute('name', 'viewport');
metaViewport.setAttribute('content', 'width=device-width, initial-scale=1');
this.spec.doc.head.insertBefore(metaViewport, this.spec.doc.head.firstChild);
Expand Down

0 comments on commit 56d6d91

Please sign in to comment.