Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
add temporary workaround for missing runtime bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
bridiver committed Oct 29, 2016
1 parent c5772a0 commit 00f3723
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions atom/common/api/resources/context_menus_bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,14 @@ var binding = {
}

exports.binding = binding

// TODO (Anthony): Move this to separated binding
var runtime = require('runtime').binding
var tabs = require('tabs').binding

runtime.openOptionsPage = function (cb) {
let manifest = runtime.getManifest()
let optionsPageURL = runtime.getURL(manifest.options_page)
tabs.create({url: optionsPageURL})
cb && cb()
}

0 comments on commit 00f3723

Please sign in to comment.