Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Update isChromeVisible to a more intuitive form.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozala committed Feb 12, 2012
1 parent 0b60ef2 commit e4db2a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/addon-kit/tests/test-addon-page.js
Expand Up @@ -11,8 +11,8 @@ const { setTimeout } = require('api-utils/timer');

let uri = require('self').data.url('index.html');

function isChromeVisible({ document })
document.documentElement.getAttribute('disablechrome') !== 'true'
function isChromeVisible(window)
window.document.documentElement.getAttribute('disablechrome') !== 'true'

exports['test that add-on page has no chrome'] = function(assert, done) {
let loader = Loader(module);
Expand Down

0 comments on commit e4db2a3

Please sign in to comment.