fix: add String.prototype.startsWith
This commit is contained in:
parent
59e753fce7
commit
8f2e8711cb
@ -4,19 +4,28 @@
|
|||||||
// PivotTracker: https://www.pivotaltracker.com/n/projects/510733
|
// PivotTracker: https://www.pivotaltracker.com/n/projects/510733
|
||||||
// Trello: https://trello.com/b/8zlPSh70/spike
|
// Trello: https://trello.com/b/8zlPSh70/spike
|
||||||
// YouTrack: http://qoomon.myjetbrains.com/youtrack/dashboard
|
// YouTrack: http://qoomon.myjetbrains.com/youtrack/dashboard
|
||||||
|
|
||||||
|
if (!String.prototype.startsWith) {
|
||||||
|
String.prototype.startsWith = function(searchString, position) {
|
||||||
|
position = position || 0;
|
||||||
|
return this.indexOf(searchString, position) === position;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
var global = {};
|
var global = {};
|
||||||
global.version = "4.6.1";
|
global.version = "4.6.2";
|
||||||
global.issueTrackingUrl = "github.com/qoomon/Jira-Issue-Card-Printer";
|
global.issueTrackingUrl = "github.com/qoomon/Jira-Issue-Card-Printer";
|
||||||
|
|
||||||
global.isDev = document.currentScript == null;
|
global.isDev = document.currentScript == null;
|
||||||
|
|
||||||
|
var $ = jQuery;
|
||||||
|
|
||||||
// enforce jQuery
|
// enforce jQuery
|
||||||
if (typeof jQuery == 'undefined') {
|
if (typeof jQuery == 'undefined') {
|
||||||
alert("jQuery is required!\n\nPlease create an issue at\n" + global.issueTrackingUrl);
|
alert("jQuery is required!\n\nPlease create an issue at\n" + global.issueTrackingUrl);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var $ = jQuery;
|
|
||||||
|
|
||||||
// run
|
// run
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user