Use regexp object instead of string
This commit is contained in:
parent
1adf489801
commit
3abda6bbd8
1 changed files with 1 additions and 1 deletions
|
@ -2557,7 +2557,7 @@ var ZoteroPane = new function()
|
||||||
* shift-click == new window, no modifier == frontmost tab
|
* shift-click == new window, no modifier == frontmost tab
|
||||||
*/
|
*/
|
||||||
function loadURI(uri, event, data) {
|
function loadURI(uri, event, data) {
|
||||||
if (Zotero.isStandalone && uri.match("^https?")) {
|
if (Zotero.isStandalone && uri.match(/^https?/)) {
|
||||||
var io = Components.classes['@mozilla.org/network/io-service;1']
|
var io = Components.classes['@mozilla.org/network/io-service;1']
|
||||||
.getService(Components.interfaces.nsIIOService);
|
.getService(Components.interfaces.nsIIOService);
|
||||||
var uri = io.newURI(uri, null, null);
|
var uri = io.newURI(uri, null, null);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue