Prettified Code!
This commit is contained in:
parent
c1614edf99
commit
20d8d70c51
1 changed files with 23 additions and 25 deletions
10
js/index.js
10
js/index.js
|
@ -34,7 +34,7 @@
|
|||
try {
|
||||
return fontSetterNative.call(this, value);
|
||||
} catch (e) {
|
||||
if (e.name !== 'NS_ERROR_FAILURE'){
|
||||
if (e.name !== "NS_ERROR_FAILURE") {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
@ -50,7 +50,7 @@
|
|||
try {
|
||||
return measureTextNative.apply(this, arguments);
|
||||
} catch (e) {
|
||||
if (e.name !== 'NS_ERROR_FAILURE'){
|
||||
if (e.name !== "NS_ERROR_FAILURE") {
|
||||
throw e;
|
||||
} else {
|
||||
return new FakeTextMetrics();
|
||||
|
@ -63,7 +63,7 @@
|
|||
try {
|
||||
fillTextNative.apply(this, arguments);
|
||||
} catch (e) {
|
||||
if (e.name !== 'NS_ERROR_FAILURE'){
|
||||
if (e.name !== "NS_ERROR_FAILURE") {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
@ -74,15 +74,13 @@
|
|||
try {
|
||||
strokeTextNative.apply(this, arguments);
|
||||
} catch (e) {
|
||||
if (e.name !== 'NS_ERROR_FAILURE'){
|
||||
if (e.name !== "NS_ERROR_FAILURE") {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
})();
|
||||
|
||||
|
||||
window.onload = startup;
|
||||
|
||||
var stableDiffusionData = {
|
||||
|
|
Loading…
Reference in a new issue