Skip to content

Commit

Permalink
Update maxVersion. Fix "ko.uriparse is 'undefined'" error.
Browse files Browse the repository at this point in the history
  • Loading branch information
th3coop committed Sep 7, 2017
1 parent 134852d commit a6e5db7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions content/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
const log = require("ko/logging").getLogger("commando-scope-projects")
const {Cc, Ci} = require("chrome");
const commando = require('commando/commando');
const _window = require('ko/windows').getMain();
const legacy = _window.ko;

//log.setLevel(require("ko/logging").LOG_DEBUG);

Expand All @@ -22,7 +24,7 @@
for (let x=0;x<projects.length;x++)
{
var uri = projects.getString(x)
var path = ko.uriparse.URIToPath(uri);
var path = legacy.uriparse.URIToPath(uri);

results.push({
id: uri,
Expand Down Expand Up @@ -68,7 +70,7 @@

// Open the first selected item
var selected = selectedItems.slice(0,1)[0];
ko.projects.open(selected.resultData.id);
legacy.projects.open(selected.resultData.id);

// Close Commando, we don't need it anymore
commando.hide();
Expand Down
6 changes: 3 additions & 3 deletions install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Description about="urn:mozilla:install-manifest">
<em:id>[email protected]</em:id>
<em:name>Commando Scope - Projects</em:name>
<em:version>1.0.1</em:version>
<em:version>1.0.2</em:version>
<em:description>Searches through recently used Projects</em:description>
<em:creator>Nathan Rijksen</em:creator>
<em:homepageURL>http://www.activestate.com/komodo-ide</em:homepageURL>
Expand All @@ -18,15 +18,15 @@
<!-- Komodo IDE's uuid -->
<em:id>{36E66FA0-F259-11D9-850E-000D935D3368}</em:id>
<em:minVersion>8.*</em:minVersion> <!-- Workaround for alphanumeric versions - NOT tested on 8.* -->
<em:maxVersion>10.*</em:maxVersion>
<em:maxVersion>11.*</em:maxVersion>
</Description>
</em:targetApplication>
<em:targetApplication>
<Description>
<!-- Komodo Edit's uuid -->
<em:id>{b1042fb5-9e9c-11db-b107-000d935d3368}</em:id>
<em:minVersion>8.*</em:minVersion> <!-- Workaround for alphanumeric versions - NOT tested on 8.* -->
<em:maxVersion>10.*</em:maxVersion>
<em:maxVersion>11.*</em:maxVersion>
</Description>
</em:targetApplication>
</Description>
Expand Down

0 comments on commit a6e5db7

Please sign in to comment.