Skip to content

Commit 6ba7f27

Browse files
committed
chore: avoid unneeded math floor calls
1 parent 80c489c commit 6ba7f27

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/core/application/application-common.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ export class ApplicationCommon {
298298

299299
private setRootViewCSSClasses(rootView: View): void {
300300
const platform = Device.os.toLowerCase();
301-
const majorVersion = Math.floor(SDK_VERSION);
302301
const deviceType = Device.deviceType.toLowerCase();
303302
const orientation = this.orientation();
304303
const systemAppearance = this.systemAppearance();
@@ -308,7 +307,7 @@ export class ApplicationCommon {
308307
CSSUtils.pushToSystemCssClasses(`${CSSUtils.CLASS_PREFIX}${platform}`);
309308

310309
// SDK Version CSS classes
311-
CSSUtils.pushToSystemCssClasses(`${CSSUtils.CLASS_PREFIX}${platform}-${majorVersion}`);
310+
CSSUtils.pushToSystemCssClasses(`${CSSUtils.CLASS_PREFIX}${platform}-${Math.floor(SDK_VERSION)}`);
312311
}
313312

314313
if (deviceType) {

0 commit comments

Comments
 (0)