Skip to content

Commit

Permalink
Simplified writing
Browse files Browse the repository at this point in the history
  • Loading branch information
maye76 committed Sep 22, 2024
1 parent 234c9c3 commit 42bd4e7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/engine/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ import { now } from '../utils.js';
export default function(framing, setup, render, remove) {
return function(_timestamp) {
framing(this._.stage);
var timestamp = _timestamp;
if (typeof timestamp === 'undefined') {
timestamp = now();
}
var timestamp = _timestamp || now();
var dn = timestamp / 1000;
var ct = this.media ? this.media.currentTime : dn;
var pbr = this.media ? this.media.playbackRate : 1;
Expand Down

0 comments on commit 42bd4e7

Please sign in to comment.