mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 23:08:13 -05:00
31 lines
1.0 KiB
CoffeeScript
31 lines
1.0 KiB
CoffeeScript
window.UglifyJS_NoUnsafeEval = true
|
|
localStorage['log'] = ''
|
|
localStorage['logLastError'] = ''
|
|
|
|
window.OmegaContextMenuQuickSwitchHandler = -> null
|
|
# We don't need this API. However its presence indicates that Chrome >= 35
|
|
# which provides info.checked we need in contextMenu callback.
|
|
# https://developer.chrome.com/extensions/contextMenus
|
|
if chrome.i18n.getUILanguage?
|
|
# We must create the menu item here before others to make it first in menu.
|
|
chrome.contextMenus.create({
|
|
id: 'enableQuickSwitch'
|
|
title: chrome.i18n.getMessage('contextMenu_enableQuickSwitch')
|
|
type: 'checkbox'
|
|
checked: false
|
|
contexts: ["browser_action"]
|
|
onclick: (info) -> window.OmegaContextMenuQuickSwitchHandler(info)
|
|
})
|
|
|
|
chrome.contextMenus.create({
|
|
title: chrome.i18n.getMessage('popup_reportIssues')
|
|
contexts: ["browser_action"]
|
|
onclick: OmegaDebug.reportIssue
|
|
})
|
|
|
|
chrome.contextMenus.create({
|
|
title: chrome.i18n.getMessage('popup_errorLog')
|
|
contexts: ["browser_action"]
|
|
onclick: OmegaDebug.downloadLog
|
|
})
|